Page 1 of 1

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

Posted: 2014-04-04T15:23:23-07:00
by Minami-tori-shima
Hello,

First, I am not very knowledgeable, so I compile ImageMagick using Homebrew ("brew" command). Second, I need ImageMagick to work with "jp2" files. With previous versions of ImageMagick (meaning 6.8.7 and prior), I did:

Code: Select all

brew install imagemagick --with-jasper
and it worked (it added "jp2" file support to ImageMagick). But with the latest version (meaning 6.8.8), it stopped working. "jp2" files are not supported. When I type:

Code: Select all

convert -list configure | grep DELEGATES
I get with ImageMagick 6.8.8:

Code: Select all

DELEGATES      bzlib mpeg freetype jng jpeg lcms png tiff xml zlib
when it should say:

Code: Select all

DELEGATES      bzlib mpeg freetype jng jp2 jpeg lcms png tiff xml zlib
Any ideas?

Re: "--with-jasper" broken in ImageMagick 6.8.8 (OS X)

Posted: 2014-04-04T18:26:48-07:00
by fmw42
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.

Re: "--with-jasper" broken in ImageMagick 6.8.8 (OS X)

Posted: 2014-04-04T20:40:58-07:00
by Minami-tori-shima
Thank you for your answer! This explains everything. I guess I will ask some kind soul in the Homebrew forums to create a "openjpeg2" formula and edit the "imagemagick" formula accordingly. I won't be able to do it myself.

Re: "--with-jasper" broken in ImageMagick 6.8.8 (OS X)

Posted: 2014-04-04T20:57:33-07:00
by fmw42
If you use MacPorts, it already has OpenJpeg 2. But so far I cannot get it to work, because, the OpenJpeg 2 from MacPorts seems to be using the v1.5 file naming notation and IM objects. So perhaps you may get better results from HomeBrew or FINK. Let us know how that works. At some point I need to report this issue to the MacPorts people and see what they say.

Re: "--with-jasper" broken in ImageMagick 6.8.8 (OS X)

Posted: 2014-06-16T23:07:06-07:00
by Minami-tori-shima
Hello,

A few moments ago, JP2 support was added to Homebrew's imagemagick. The install command is:

Code: Select all

brew install imagemagick --with-jp2
Problem resolved!