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
Convert Return Code 9
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert Return Code 9
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
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...
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert Return Code 9
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?