Is it possible for convert to return a "-1" ?
Posted: 2011-05-26T21:00:08-07:00
Is it possible for convert to return a "-1" ?
A friend of mine is using Cygwin's 6.4.0 version of ImageMagick to run the convert program, and apparently receives a "-1" return code from convert.
After some searching, it appears the ImageMagick programs only return a 0 (success) or a 1 (failure). So I am guessing his "-1" return code is coming from the Windows OS or the Windows convert.exe program. I could not find anything in google about a negative return code from ImageMagick, though I did see some Exception codes listed that had values greater than 1.
Is it correct to say that convert itself only returns a 0 or 1?
What I found so far:
http://www.imagemagick.org/script/exception.php
viewtopic.php?f=3&t=12115
viewtopic.php?f=1&t=8571&start=0
A friend of mine is using Cygwin's 6.4.0 version of ImageMagick to run the convert program, and apparently receives a "-1" return code from convert.
After some searching, it appears the ImageMagick programs only return a 0 (success) or a 1 (failure). So I am guessing his "-1" return code is coming from the Windows OS or the Windows convert.exe program. I could not find anything in google about a negative return code from ImageMagick, though I did see some Exception codes listed that had values greater than 1.
Is it correct to say that convert itself only returns a 0 or 1?
What I found so far:
http://www.imagemagick.org/script/exception.php
viewtopic.php?f=3&t=12115
viewtopic.php?f=1&t=8571&start=0