ImageMagick/Ghostscript Troubles
Hi all,
I'm trying to convert a PDF document to a JPG image using ImageMagick. The file is called "front.pdf" and I want to convert it to "front.jpg." When I use the convert command, I am getting an error: Code:
$ convert front.pdf front.jpg |
Should work.
It is either a pdf in non-standard format, or too new a format. Or you have a version of convert which contains a bug. Code:
jlinkels@jlinkels_pc:~$ convert -version jlinkels |
I am guessing that Imagemagick itself cannot display PDF directly, but needs a helper app like Ghostscript.
Ghostscript should be able to generate a jpeg directly, with something like $ gs -sDEVICE=jpeg -o image.jpg file.pdf Command 'gs -h' shows all the output 'devices' for Ghostscript, including various other image formats. |
Ghostscript error
HI Im getting a similar error and cant find any help anywhere.
This same script works on some pdf and not on others and i cant seem to figure out why or how to get it to work on all of the pdf im needing images from. heres the error: Code:
[root@XXXXXX files]# gs -SDEVICE=jpeg -r72 -sOutputFile=../img/newsletter/asid_occ_summer2008.jpg -dNOPAUSE -dBATCH -dGraphicsAlphaBits=4 -dUseCIEColor -dLastPage=1 -- asid_occ_summer2008.pdf |
All times are GMT -5. The time now is 07:34 AM. |