Page 1 of 1

convert to uncompressed JPEG2000 ?

Posted: 2009-06-03T10:15:16-07:00
by Cyberbob
I am lost!

I want to convert TIF files to uncompressed JPEG2000 files via the command line tool. I compiled the library with jpeg2000 support and it works but i cant manage to get the quality level adopted- the command i use is:

convert test.tif -compress jpeg2000 -quality 100% target.jp2

i although tried:

convert test.tif -compress Lossless -quality 100% target.jp2

it doesn't work! The target.jp2 has always a quality of 75 if i take a closer look at it by typing:

display -identify -verbose target.jp2

Beside this i tried to generate lossless normal jpegs and couldnt even get it to work. The quality is alway 75!!

what the hell am i doing wrong????

thanks folks!!

greetings

Re: convert to uncompressed JPEG2000 ?

Posted: 2009-06-03T10:36:04-07:00
by fmw42
I am no expert on this but try:

convert test.tif -compress jpeg2000 -quality 100% JP2:test.jp2

see http://www.imagemagick.org/Usage/formats/#jpg

Re: convert to uncompressed JPEG2000 ?

Posted: 2009-06-04T00:43:57-07:00
by Cyberbob
No chance - it doesen't work- do i have to fix the JPEG Library or something?

Even if i try to convert a tif image to standard jpeg and setting quality level by:

convert test.tif -quality 30% test.jpg

The quality Parameter doesn't have any effect. Why?

Thanks a lot!

Re: convert to uncompressed JPEG2000 ?

Posted: 2009-06-04T09:40:18-07:00
by fmw42
I don't know if I can help further. What IM version are you using and on what platform? If IM is old, then upgrade.