HELP: Can't Convert .pdf to .gif

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
seathebird
Posts: 2
Joined: 2013-03-10T13:09:11-07:00
Authentication code: 6789

HELP: Can't Convert .pdf to .gif

Post by seathebird »

I'm trying to convert a multi-page .pdf file into an animated .gif using the sequence:

Code: Select all

convert -delay 10 Ellipse.pdf Ellipse.gif
However, It doesn't work and results in an error code stating that it cannot find the file or directory. I set the working directory to the folder on my desktop containing the .pdf file that should be converted.

I'm using the following version ImageMagick 6.8.3-8 2013-03-04 Q16 on Windows Vista with a x64-bit OS.

Any help would be greatly appreciated!!

Thanks
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: HELP: Can't Convert .pdf to .gif

Post by snibgo »

This works fine for me with 6.7.9 or 6.8.3-0 on Windows 7.

What is the exact error message?

Can you convert a single page?

Code: Select all

convert Ellipse.pdf e.png
What output do you get with "-verbose"?
snibgo's IM pages: im.snibgo.com
seathebird
Posts: 2
Joined: 2013-03-10T13:09:11-07:00
Authentication code: 6789

Re: HELP: Can't Convert .pdf to .gif

Post by seathebird »

Thanks for the help @snibgo.

I can't even convert a single page, as I get the following error message:
convert.exe: `%s' (%d) "gswin32c.exe" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOP
ROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha"
-dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=C:/Users/owner/
AppData/Local/Temp/magick-4556t6dryqxAle0U-1" "-fC:/Users/owner/AppData/Local/Te
mp/magick-4556djOl6-EP27Td" "-fC:/Users/owner/AppData/Local/Temp/magick-45567iso
6khSoSa2" @ error/utility.c/SystemCommand/1894.
convert.exe: Postscript delegate failed `Ellipse.pdf': No such file or directory
@ error/pdf.c/ReadPDFImage/681.
convert.exe: unable to open image `e.png': No such file or directory @ error/blo
b.c/OpenBlob/2641.
convert.exe: unable to open file `e.png' @ error/png.c/ReadPNGImage/3797.
convert.exe: no images defined `-verbose' @ error/convert.c/ConvertImageCommand/
3068.
However, I pointed to the folder containing the .pdf file in the CMD prompt.

Thanks
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: HELP: Can't Convert .pdf to .gif

Post by snibgo »

As you can see, "convert" is trying to run "gswin32c.exe". What happens when you type that at the command line? If it fails, you haven't installed ghostscript.

Another possibility is that you don't have permissions to the directory C:/Users/owner/AppData/Local/Temp/
snibgo's IM pages: im.snibgo.com
Post Reply