Page 1 of 1

exit value = 1

Posted: 2009-07-27T07:25:33-07:00
by stuartp
Hi
I am getting the error "exit value = 1" when the following command is executed via a java application. The same code runs fine when run on the command line.

/opt/local/bin/convert /Library/WebServer/Documents/uploads/logo.jpg -debug all -resize 150x150\> /Library/WebServer/Documents/images/members/logos/logo.jpg

the following commands works fine
/opt/local/bin/convert /Library/WebServer/Documents/cropped/open-hand-2.jpg -quality 100% /Library/WebServer/Documents/images/members/open-hand-2.jpg

I have checked permissions on both output directories and they are fine - are there any options for increasing the debugging output in order to determine what may be the culprit here? I'm running 6.5.2-7 of ImageMagick.

Re: exit value = 1

Posted: 2009-07-27T09:14:19-07:00
by magick
You can get copious debugging output with this option: -debug all,trace.

Re: exit value = 1

Posted: 2009-07-29T21:29:28-07:00
by stuartp
Thanks for your response.
Unfortunately adding the ,trace command caused the whole app to hang - no response was returned from the exec call. Are there settings or properties that allow me to specify logging location?

Re: exit value = 1

Posted: 2009-07-30T05:49:31-07:00
by magick
You can customize logging by modifying the log.xml configuration file.

Re: exit value = 1

Posted: 2009-08-03T00:21:07-07:00
by anthony
You could be able to copy the log.xml file to a ".magick" sub-directory in your home. That way you don't change the system file, and your change stays in effect after IM upgrades.