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?".

ImageMagick's error codes

Postby Bertrand » 2009-06-19T08:39:14+00:00

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.
Bertrand
 
Posts: 7
Joined: 2009-06-19T08:35:57+00:00

Re: ImageMagick's error codes

Postby magick » 2009-06-19T08:43:22+00:00

ImageMagick has internal error codes of 300-799. The ImageMagick command line programs return either 0 (success) or 1 (failure).
User avatar
magick
Site Admin
 
Posts: 9657
Joined: 2003-05-31T11:32:55+00:00

Re: ImageMagick's error codes

Postby Bertrand » 2009-06-19T08:50:21+00:00

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+00:00

Re: ImageMagick's error codes

Postby Bertrand » 2009-06-23T10:18:37+00:00

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 ?
Bertrand
 
Posts: 7
Joined: 2009-06-19T08:35:57+00:00

Re: ImageMagick's error codes

Postby magick » 2009-06-23T10:20:39+00:00

Those values are enumerations for choosing which PerlMagick method to use. It has nothing to do with exception codes.
User avatar
magick
Site Admin
 
Posts: 9657
Joined: 2003-05-31T11:32:55+00:00


Return to Users

Who is online

Users browsing this forum: Bing [Bot] and 7 guests