exit value = 1

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
stuartp

exit value = 1

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: exit value = 1

Post by magick »

You can get copious debugging output with this option: -debug all,trace.
stuartp

Re: exit value = 1

Post 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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: exit value = 1

Post by magick »

You can customize logging by modifying the log.xml configuration file.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: exit value = 1

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply