Bug 16585 - ImageMagick packaged with Mageia 5 can't handle JPEG-2000
Summary: ImageMagick packaged with Mageia 5 can't handle JPEG-2000
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://github.com/Homebrew/homebrew/...
Whiteboard: MGA5-64-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2015-08-14 04:54 CEST by John L. ten Wolde
Modified: 2015-08-21 20:56 CEST (History)
2 users (show)

See Also:
Source RPM: imagemagick-6.8.9.9-4.mga5
CVE:
Status comment:


Attachments

Description John L. ten Wolde 2015-08-14 04:54:00 CEST
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:
Rémi Verschelde 2015-08-14 07:40:28 CEST

Assignee: bugsquad => shlomif

Comment 1 Shlomi Fish 2015-08-14 10:25:18 CEST
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:
Comment 2 Rémi Verschelde 2015-08-14 10:42:13 CEST
(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.
Comment 3 Shlomi Fish 2015-08-14 11:27:00 CEST
(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

Comment 4 Yann Cantin 2015-08-16 23:04:49 CEST
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.cantin
Whiteboard: (none) => MGA5-64-OK

Comment 5 Samuel Verschelde 2015-08-21 11:23:27 CEST
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_update
CC: (none) => sysadmin-bugs

Rémi Verschelde 2015-08-21 16:47:11 CEST

Whiteboard: MGA5-64-OK => MGA5-64-OK advisory

Comment 6 Mageia Robot 2015-08-21 20:56:02 CEST
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0094.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.