MagickStripImage returning WandException (6.3.1)

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply

MagickStripImage returning WandException (6.3.1)

Post by ZeroAltitude » 2007-01-16T12:25:16-07:00

I have some code that worked without exceptions in 6.2.9-1. That code is trivial -- it looks like this:

status = MagickStripImage(magick_wand); \
COND_WAND_EX(status, magick_wand); \

where COND_WAND_EX looks exactly like the default WandException code found here: (bottom of page).

In 6.3.1, when I apply this to a JPG, there are two differences in behavior from what used to happen in 6.2.9. (1) Profile-icm remains in the JPG (used to be stripped out along with EXIF in 6.2.9). (2) I get an exception that looks like this:

MagickWandException: mod_bittyimfe.c unknown 3366

mod_bittyimfe.c is the name of my apache module that uses ImageMagick.

Can someone: (1) tell me if this exception is a sign of a problem I should be worried about, (2) tell me why this behavior is different, (3) tell me if the 6.3.1 behavior is a bug, or is intended, (4) tell me another way to strip the image profiles if I am doing it wrong.

Thank you in advance,


User avatar
Site Admin
Posts: 10918
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2007-01-16T13:45:19-07:00

We'll have a patch in ImageMagick 6.3.2-0 Beta by tommorrow so an exception is not thrown. The ICM profile is added if the JPEG has an EXIF profile that indicates the sRGB colorspace. Its not in the image file, its added at run time. Add -strip to ensure it is not saved when converting the image file. Thanks for the problem report.

Post Reply