Converting to JP2

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
UlyLee
Posts: 2
Joined: 2012-12-11T20:08:12-07:00
Authentication code: 6789

Converting to JP2

Post by UlyLee »

Hi,

I want to convert to JP2 and have the following required specs:

Quality levels/layers:
Multiple quality levels/layers, highest quality should be lossless. 16 levels/layers. After lossless, 4 bits/pixel, 2 bits/pixel, and so on down to 0.015625 bits/pixel.

I can set this using the ilyrrates parameter right? What would be the array of values that I would use to satisfy the requirements above?

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

Re: Converting to JP2

Post by fmw42 »

JP2 (JPG2000) is currently handled by the Jasper delegate library. To get your desired functionality, you may need to use the Jasper delegate itself outside of IM.

See
http://www.imagemagick.org/script/jp2.php
http://www.ece.uvic.ca/~frodo/jasper/
UlyLee
Posts: 2
Joined: 2012-12-11T20:08:12-07:00
Authentication code: 6789

Re: Converting to JP2

Post by UlyLee »

Thanks for the reply.

I'm fairly new to the JP2 format and I was trying to understand the requirements that I mentioned above and try to map it out in the JP2 options in ImageMagick. I already saw that links before I posted, but it does not offer any information that would help me understand the requirements.
Quality levels/layers:
Multiple quality levels/layers, highest quality should be lossless. 16 levels/layers. After lossless, 4 bits/pixel, 2 bits/pixel, and so on down to 0.015625 bits/pixel.
As I understand this, it says that there should have 16 layers with the rates going from lossless to 0.015625. So in using the ilyrrates options in ImageMagick, I need 16 rate values, representing the 16 layers, which goes from 0.015625 bits/pixel to 4 bits/pixel. Is this correct?

Now, how do I get the rest of the values?

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

Re: Converting to JP2

Post by fmw42 »

Wish I could help, but I do not use JP2 enough. I just normally use the default. I am not really knowledgeable in its parameterization. Perhaps someone else might be able to help who uses Jasper more than I.
Post Reply