As my title suggests, ImageMagick on Mageia 5 wasn't compiled with JPEG-2000 support. Attempting to convert a jp2 image to anything else results in: $ convert foo.jp2 foo.png convert: no decode delegate for this image format `JP2' @ error/constitute.c/ReadImage/501. convert: no images defined `foo.png' @ error/convert.c/ConvertImageCommand/3210. -- Note the absence of "jp2" on the delegates line. $ convert --version Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-02 http://www.imagemagick.org Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC Modules OpenMP Delegates: bzlib cairo fftw fontconfig freetype gvc jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff webp wmf x xml zlib -- From what I was able to gather JPEG-2000 support used to be handled by compiling in Jasper but the ImageMagick devs have abandoned Jasper for OpenJPEG2. In the URL I've supplied above, I have no idea what "Homebrew" is, but hopefully the other info provided proves useful to our package maintainer. As always, thanks to everyone for their hard work and dedication. Reproducible: Steps to Reproduce:
Assignee: bugsquad => shlomif
Hi John, (In reply to John ten Wolde from comment #0) > As my title suggests, ImageMagick on Mageia 5 wasn't compiled with JPEG-2000 > support. Attempting to convert a jp2 image to anything else results in: > > $ convert foo.jp2 foo.png > convert: no decode delegate for this image format `JP2' @ > error/constitute.c/ReadImage/501. > convert: no images defined `foo.png' @ > error/convert.c/ConvertImageCommand/3210. > -- > > > Note the absence of "jp2" on the delegates line. > > $ convert --version > Version: ImageMagick 6.8.9-9 Q16 x86_64 2015-01-02 http://www.imagemagick.org > Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC > Features: DPC Modules OpenMP > Delegates: bzlib cairo fftw fontconfig freetype gvc jbig jng jpeg lcms lqr > ltdl lzma openexr pangocairo png rsvg tiff webp wmf x xml zlib > -- > > > From what I was able to gather JPEG-2000 support used to be handled by > compiling in Jasper but the ImageMagick devs have abandoned Jasper for > OpenJPEG2. In the URL I've supplied above, I have no idea what "Homebrew" > is, but hopefully the other info provided proves useful to our package > maintainer. Thanks for the investigation and the link. Homebrew is a package manager for Mac OS X. Anyway, this bug was still present in Mageia Cauldron and it should be fixed there in imagemagick-6.9.1.6-4.mga6 . Now the question is if we should fix the bug in Mageia 5 as well by backporting the fix to the SPEC. > > As always, thanks to everyone for their hard work and dedication. You're welcome. :-) Regards, -- Shlomi Fish > > Reproducible: > > Steps to Reproduce:
(In reply to Shlomi Fish from comment #1) > (In reply to John ten Wolde from comment #0) > > From what I was able to gather JPEG-2000 support used to be handled by > > compiling in Jasper but the ImageMagick devs have abandoned Jasper for > > OpenJPEG2. > > Anyway, this bug was still present in Mageia Cauldron and it > should be fixed there in imagemagick-6.9.1.6-4.mga6 . Now the question is > if we should fix the bug in Mageia 5 as well by backporting the fix to > the SPEC. I'd say yes, at it sounds like a regression due to upstream moving from Jasper to OpenJPEG2; the spec file still referred to libjasper-devel, so I guess JPEG-2000 support was expected to be available, and since it's not in the end, it warrants a bugfix update IMO.
(In reply to Rémi Verschelde from comment #2) > (In reply to Shlomi Fish from comment #1) > > (In reply to John ten Wolde from comment #0) > > > From what I was able to gather JPEG-2000 support used to be handled by > > > compiling in Jasper but the ImageMagick devs have abandoned Jasper for > > > OpenJPEG2. > > > > Anyway, this bug was still present in Mageia Cauldron and it > > should be fixed there in imagemagick-6.9.1.6-4.mga6 . Now the question is > > if we should fix the bug in Mageia 5 as well by backporting the fix to > > the SPEC. > > I'd say yes, at it sounds like a regression due to upstream moving from > Jasper to OpenJPEG2; the spec file still referred to libjasper-devel, so I > guess JPEG-2000 support was expected to be available, and since it's not in > the end, it warrants a bugfix update IMO. Fair enough - I submitted an update to Mageia 5 - imagemagick-6.8.9.9-4.1.mga5 . Assigning to QA for testing. Advisory: Suggested advisory: ======================== Updated imagemagick packages fix JPEG2000 support. imagemagick in Mageia 5 did not support JPEG2000 due to the lack of availability of libopenjpeg2. References: https://bugs.mageia.org/show_bug.cgi?id=16585 ======================== Updated packages in core/updates_testing: ======================== imagemagick-6.8.9.9-4.1.mga6.x86_64.rpm imagemagick-debuginfo-6.8.9.9-4.1.mga6.x86_64.rpm imagemagick-desktop-6.8.9.9-4.1.mga6.x86_64.rpm lib64magick-6Q16_2-6.8.9.9-4.1.mga6.x86_64.rpm lib64magick++-6Q16_5-6.8.9.9-4.1.mga6.x86_64.rpm lib64magick-devel-6.8.9.9-4.1.mga6.x86_64.rpm perl-Image-Magick-6.8.9.9-4.1.mga6.x86_64.rpm imagemagick-doc-6.8.9.9-4.1.mga6.noarch.rpm Source RPMs: imagemagick-6.8.9.9-4.1.mga6.src.rpm
Assignee: shlomif => qa-bugs
mga5 64 LANG=fr_FR.UTF-8 urpmi imagemagick-6.8.9.9-4.1.mga5 pull lib64openjp2_7-2.1.0-3.mga5 convert --version show no "jp2" on the delegates line, but - convert relax.jp2 relax.png : OK - display relax.jp2 : OK
CC: (none) => yann.cantinWhiteboard: (none) => MGA5-64-OK
On arch was tested ok and I had a look at the spec file change. Validating. Still needs QA to upload advisory though.
Keywords: (none) => validated_updateCC: (none) => sysadmin-bugs
Whiteboard: MGA5-64-OK => MGA5-64-OK advisory
An update for this issue has been pushed to Mageia Updates repository. http://advisories.mageia.org/MGAA-2015-0094.html
Status: NEW => RESOLVEDResolution: (none) => FIXED