CONVERT: image can not open
Posted: 2012-06-10T23:23:43-07:00
Not always but occasionally when I try to convert some pdfs/ttif to a JPEG using ImageMagick their backgrounds not being converted. It throws error like
convert: unable to open image file location ': @ error/blob.c/OpenBlob/2517.
convert: unable to open image 'filename.jpg': @ error/blob.c/OpenBlob/2517.
convert: missing an image filename image 'filename.pdf' @ error/convert.c/ConvertImageCommand/2953."
I am using command like
convert -density 150 -strip -compress JPEG -quality 70' + ' ' + "filename.pdf" + ' -page A4 ' + "filename.JPG".
After this, i wanted to merged all the JP files into single PDF file with the following command
convert -page A4 -strip -compress JPEG -quality 70'+ ' ' + "filename.PDG" + ' ' + "filename.JPG" .
Any suggestions would be greatly appreciated.
convert: unable to open image file location ': @ error/blob.c/OpenBlob/2517.
convert: unable to open image 'filename.jpg': @ error/blob.c/OpenBlob/2517.
convert: missing an image filename image 'filename.pdf' @ error/convert.c/ConvertImageCommand/2953."
I am using command like
convert -density 150 -strip -compress JPEG -quality 70' + ' ' + "filename.pdf" + ' -page A4 ' + "filename.JPG".
After this, i wanted to merged all the JP files into single PDF file with the following command
convert -page A4 -strip -compress JPEG -quality 70'+ ' ' + "filename.PDG" + ' ' + "filename.JPG" .
Any suggestions would be greatly appreciated.