Page 1 of 1

JPEG-2000 static delegate not references with openjp2

Posted: 2014-03-05T11:36:17-07:00
by pronaldzito
With openjp2 replacing jasper, the constant for JPEG-2000 was changed from MAGICKCORE_JP2_DELEGATE to MAGICKCORE_LIBOPENJP2_DELEGATE
magick/static.c lines 236-238 are:

Code: Select all

#if defined(MAGICKCORE_JP2_DELEGATE)
  (void) RegisterJP2Image();
#endif
This change fixes the issue:

Code: Select all

#if defined(MAGICKCORE_JP2_DELEGATE)
  (void) RegisterJP2Image();
#elif defined(MAGICKCORE_LIBOPENJP2_DELEGATE)
  (void) RegisterJP2Image();
#endif
This issue was identified earlier in viewtopic.php?f=2&t=24983

Re: JPEG-2000 static delegate not references with openjp2

Posted: 2014-03-05T12:22:06-07:00
by fmw42
I have a similar problem when using OpenJpeg 2 from MacPorts. It is looking for the old naming convention

Re: JPEG-2000 static delegate not references with openjp2

Posted: 2014-03-05T15:58:29-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.8-8 Beta, available by sometime tomorrow. Thanks.