JPEG-2000 static delegate not references with openjp2

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
pronaldzito
Posts: 12
Joined: 2013-12-03T15:56:51-07:00
Authentication code: 6789

JPEG-2000 static delegate not references with openjp2

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: JPEG-2000 static delegate not references with openjp2

Post by fmw42 »

I have a similar problem when using OpenJpeg 2 from MacPorts. It is looking for the old naming convention
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: JPEG-2000 static delegate not references with openjp2

Post 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.
Post Reply