Yes I know JP2 is relatively new, and it's great that IM supports it at all! The landscape for JP2/JPEG 2000 in FLOSS isn't favourable at all.
Don't use an "=".
Ahem, right. Sorry. This works in 6.7.7-10. I got confused because neither command works on fedora 21/22, while the current Ubuntu version recognises "-quality 60". Is it the only option available with JasPer?
fmw42 wrote:Older releases of IM used the Jasper delegate library to process JP2. Newer release use OpenJPEG do that. Jasper is more limited in the types of JP2 that are supported. The change was at IM 22.214.171.124 and requires OpenJPEG 2.1.
Sure, in fact I also reported the thing to Fedora (126.96.36.199): https://bugzilla.redhat.com/show_bug.cgi?id=1267391
Do all the options in http://www.imagemagick.org/script/jp2.php
work only with IM 188.8.131.52 + openjpeg 2.1+, or is any of them available for older versions, other than "-quality X"?
I'd like to do further tests, I'll check what packages exist or consider compiling myself. On Ubuntu I have both jasper and openjpeg installed but I suppose IM is built with jasper. I'm not sure whether the available openjpeg is a sufficiently recent one.
Code: Select all
$ identify -version
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
$ identify -list configure | grep LIBS
LIBS -lMagickCore -llcms2 -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfftw3 -lfontconfig -lfreetype -lXext -lSM -lICE -lX11 -lXt -llzma -lbz2 -lz -lm -lgomp -lpthread -lltdl
$ dpkg -l | grep openjp
ii libopenjpeg2:amd64 1.3+dfsg-4.7ubuntu1 amd64 JPEG 2000 image compression/decompression library
$ dpkg -l | grep jasper
ii libjasper1:amd64 1.900.1-14ubuntu3.2 amd64 JasPer JPEG-2000 runtime library
Fedora currently has:
Code: Select all
$ rpm -qa | grep openjpe