Magick++, lossless JPEG 2000

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
aseering

Magick++, lossless JPEG 2000

Post by aseering »

Hi,
I'm trying to write a Lossless JPEG 2000 image from Magick++ (the C++ ImageMagick binding). If I just save with magick="JP2", I get a JPEG 2000 image that's very close to the original, but has lots of off-by-1 errors.

From these forums, it sounds like ImageMagick can itself do Lossless JPEG 2000. Anyone know how to tell Magick++ to do this?

Adam
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Magick++, lossless JPEG 2000

Post by fmw42 »

IM uses the Jasper delegate library to do JP2000. You can use that delegate library stand alone if you want to test things.
aseering

Re: Magick++, lossless JPEG 2000

Post by aseering »

Thanks. Any pointers on how to do this? (Does Jasper have API docs somewhere?; I've not been able to find them, only the general overview doc on its website.)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Magick++, lossless JPEG 2000

Post by fmw42 »

I have never used it directly. Docs at http://www.ece.uvic.ca/~mdadams/jasper/jasper.pdf. You could try searching the IM archives and see if there are any pointers.
aseering

Re: Magick++, lossless JPEG 2000

Post by aseering »

Yeah; those are the general/abstract design docs, not API docs.

This feels a lot me like the off-by-1 bug discussed elsewhere in these forums. But I'm setting "jp2:mode=int" and that's not helping, and I'm running a newer version of ImageMagick than the noted buggy one...
Post Reply