Page 1 of 1

Convert Return Code 9

Posted: 2012-10-11T05:13:02-07:00
by uwemutz
Hi.
I searched a bit through the forum but didn't find a satisfying answer: sometimes when I use the Convert command I get a return code 9.
This is the command:

convert -density 288x288 ../../../backoffice/kunden/syne/uploads/moderncataloque/pdf/Hochzeitsbuch_72dpi_S7883.pdf -colorspace rgb -resize 960x -quality 100% ../../../backoffice/kunden/syne/uploads/moderncataloque/pdf/tmp_1349957216/Hochzeitsbuch_72dpi_S7883_%03d.jpg

Some other times the command works well and I dont get an return code not equal to 0... So does this mean the command fails because of a wrong command (which I dont think because the command I use seems pretty correct to me) or is there a problem with the ImageMagick installation with my provider?

Ciao
Uwe

Re: Convert Return Code 9

Posted: 2012-10-11T09:47:35-07:00
by fmw42
Try putting -colorspace RGB (or sRGB depending upon your IM version) before the input pdf. But I doubt that is the issue. It may be a corrupted pdf.

Re: Convert Return Code 9

Posted: 2012-10-12T02:50:32-07:00
by uwemutz
hmmm, the point is: the code most of the times works and sometimes it doesn't... So I suppose there cant be anything wrong with the PDF (because the code works on the PDF most of the times and sometimes not...) or with the code...

Re: Convert Return Code 9

Posted: 2012-10-12T09:43:18-07:00
by fmw42
You will have to post a link to your pdf so others can test with it. Are you saying the same command and the same pdf sometimes works and sometimes does not? That is very strange. Is this run on a shared server? I am not familiar with IM return codes, but I have never heard of it being other than 0 or 1. Could that return code be coming from your server of other parts of your code? Might you be running out of memory or disk space or have permissions problems?