test_formats(Magick_UT) in Magick.rb fails #84

Closed
linduxed opened this Issue Aug 2, 2014 · 10 comments

3 participants

@linduxed
test_formats(Magick_UT) [/home/linduxed/Documents/ruby/rmagick/test/Magick.rb:93]:
Exception raised:
<#<Magick::ImageMagickError: unable to load module `/usr/lib/ImageMagick-6.8.9//modules-Q16HDRI/coders/jp2.la': file not found @ error/module.c/OpenModule/1282>>.
@linduxed linduxed added this to the Get tests green milestone Aug 2, 2014
@linduxed linduxed added the bug label Aug 2, 2014
@u338steven

I guess this is not RMagick issue.
Perhaps a permission problem or lack of delegate libraries.

@linduxed

Are you suggesting this could be a local issue caused by my ImageMagick version?

@ioquatix

I think that's what @u338steven is implying. It sort of looks like that.

@u338steven

Sorry for my bad English.

Are you suggesting this could be a local issue caused by my ImageMagick version?

I think that's what @u338steven is implying. It sort of looks like that.

Yes. It might have relation to the following.

The Jasper delegate library has been replace with the OpenJpeg v2 delegate library for handling JP2000. This started at IM 6.8.8-2. Jasper is not an option. You must install the OpenJpeg v2 library and recompile IM.

ImageMagick • View topic - "--with-jasper" broken in ImageMagick 6.8.8 (OS X)

Installing ImageMagick with JP2 support on CentOS | BTMash

@linduxed

In this case it might be worth noting that the ImageMagick version I'm using is the one you get straight out of the official Arch Linux repositories, which is the latest one available (at the time of writing 6.8.9.7-1).

What do you guys think about adjusting the tests to reflect this change? Should we keep them like they are because people might be using older versions of ImageMagick?

@ioquatix

I'm using the same one from Arch and not seeing the same issue...?

@u338steven

I'm using the same one from Arch and not seeing the same issue...?

Me neither... I cannot duplicate the same issue on my Ubuntu x64.
What version of OpenJPEG are you using?

ImageMagick version: 6.8.9-7, with jp2 delegate

$ convert -version
Version: ImageMagick 6.8.9-7 Q16 x86_64 2014-09-11 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC HDRI OpenMP
Delegates: bzlib djvu fontconfig freetype jbig jng jp2 jpeg lcms lqr lzma openexr png tiff x xml zlib

Delegate libraries: with libopenjp2.so

$ ldd `which convert`
...
    libopenjp2.so.7 => /usr/local/lib/libopenjp2.so.7 (0x00007f77405d2000)
...

OpenJPEG version: 2.1.0

$ ls -la /usr/local/lib/libopenjp2.so.7
lrwxrwxrwx 1 root root 19 Sep 11 04:35 /usr/local/lib/libopenjp2.so.7 -> libopenjp2.so.2.1.0
@linduxed

My version of openjpeg is 1.5.2. Should this be a version that exhibits this kind of problem?

@u338steven

Maybe so.
ImageMagick 6.8.9 requires OpenJPEG 2.0.1 or later.

OpenJP2 broke the API between 2.0.0 and 2.0.1. We can require a min release of 2.0.1 to get around this breakage. Look for a patch in ImageMagick 6.8.9-1 Beta later today.

ImageMagick • View topic - MacPorts +jpeg2 option broken

@linduxed

By installing the optional dependency openjpeg2 (openjpeg is automatically installed as a dependency by the Arch package manager) the test passed.

Other packages that needed to be installed that were labeled as optional dependencies were libwmf and libwebp.

@linduxed linduxed closed this Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment