ImageMagick's error codes

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bertrand
Posts: 7
Joined: 2009-06-19T08:35:57-07:00
Authentication code: 8675309

ImageMagick's error codes

Post by Bertrand »

Hello everybody,

Is it possible to get the list of error codes of ImageMagick ?

If no, does anybody know when errors 135 and 137 are raised ?

Thank you by advance,
Bertrand.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick's error codes

Post by magick »

ImageMagick has internal error codes of 300-799. The ImageMagick command line programs return either 0 (success) or 1 (failure).
Bertrand
Posts: 7
Joined: 2009-06-19T08:35:57-07:00
Authentication code: 8675309

Re: ImageMagick's error codes

Post by Bertrand »

Hum, well that is strange.

I have a php call that does :
exec($call, $finfo, $retcode);
where $call is an ImageMagick's command line.

Here is what I have on my debug log :
exec(/usr/local/bin/convert -set registry:temporary-path /tmp -limit memory 32mb -limit map 64mb [...etc] 2>&1), returned '', code = 137
where "returned" is $finfo[0]'s value and "code" is $retcode's value.

Does anybody have an idea of what is going on ?
Bertrand
Posts: 7
Joined: 2009-06-19T08:35:57-07:00
Authentication code: 8675309

Re: ImageMagick's error codes

Post by Bertrand »

Some news.

I searched for occurencies of those codes and I find them in two different file.

Magick.c
XSANY.any_i32 = 135 ;
sv_setpv((SV*)cv, "$;@") ;
cv = newXS("Image::Magick::StereoImage", XS_Image__Magick_Mogrify, file);
...
XSANY.any_i32 = 137 ;
sv_setpv((SV*)cv, "$;@") ;
cv = newXS("Image::Magick::Normalize", XS_Image__Magick_Mogrify, file);
Magick.xs
Profile = 135
...
UnsharpMask = 137
Does anybody have some clue ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: ImageMagick's error codes

Post by magick »

Those values are enumerations for choosing which PerlMagick method to use. It has nothing to do with exception codes.
Post Reply