JPEG2000 support?

K

Kyler Laird

I'm getting ready to build an application around a big JPEG2000
image but I haven't found any Python support for JPEG2000.

I plan to just use an external call to JasPer to handle the
conversion for now but I'd prefer to have a better integrated
solution. Are any Python libraries likely to have support for
it soon? My searches are yielding surprisingly little.

Thank you.

--kyler
 
C

Christopher T King

I'm getting ready to build an application around a big JPEG2000
image but I haven't found any Python support for JPEG2000.

I plan to just use an external call to JasPer to handle the
conversion for now but I'd prefer to have a better integrated
solution. Are any Python libraries likely to have support for
it soon? My searches are yielding surprisingly little.

PyMagick is a Python interface to the powerful, cross-platform ImageMagick
graphics package, which supports JPEG2000 through an external library.
So unlike something like PIL, you'd also need to install ImageMagick
(compiled with JPEG2000 support) and a JPEG2000 library, but it seems to
be very well integrated with Python, PIL, and numeric.

Hope this helps.
 
M

Michel Claveau, résurectionné d'outre-bombe inform

it seems to be very well integrated with Python, PIL, and numeric.

Yo, man ! It's cool !
 
K

Kyler Laird

Christopher T King said:
PyMagick is a Python interface to the powerful, cross-platform ImageMagick
graphics package, which supports JPEG2000 through an external library.

I've also been using ImageMagick to do some conversions. (In fact, I'm going
to try it soon to see if it can handle converting a ~12GB image without first
loading it all into memory.) I was hoping that PyMagick might be able to
also handle JPEG2000.

A few days ago when I was searching for this information I recall seeing that
someone was having problems using ImageMagick for JPEG2000 because he could
not find a way to specify some of the JPEG2000-specific features. I will
need to be able to, for example, set the progression order for creating
JPEG2000 images but I'm o.k. with creating the image with something else.

It's vital, however, that I find a way to extract images efficiently. When I
timed ImageMagick by using "convert" to extract various resolutions of a
JPEG2000 image (simply using "-scale"), it was not clear to me that it was
taking advantage of JPEG2000's multi-resolution capabilities.

Thank you for the reference. I'll try a PyMagick implementation. (I would
have done it sooner but it's not a Debian package.)

--kyler
 
D

Dave Benjamin

PyMagick is a Python interface to the powerful, cross-platform ImageMagick
graphics package, which supports JPEG2000 through an external library.
So unlike something like PIL, you'd also need to install ImageMagick
(compiled with JPEG2000 support) and a JPEG2000 library, but it seems to
be very well integrated with Python, PIL, and numeric.

Which PyMagick are you referring to?

This one: http://starship.python.net/crew/zack/pymagick/
Or this one: http://pythonmagick.procoders.net/

Pros/cons of each? I've used the one at procoders, but I had problems with
it conflicting with my standalone ImageMagick DLLs (on Windows, of course).
I'm also a bit confused as to the real and practical difference between
"ImageMagick" and "GraphicsMagick".

Thanks,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,667
Latest member
DaniloB294

Latest Threads

Top