Hello, I really like ImageMagic. I don't want a substitute. It's just taking me a while to get things working. Please bare with me.
MY PROBLEM
*****************************************************************
Whilst I can now convert .tif files to .png, when I attempt to run convert 1.pdf -scale 500 11111.png it fails. I get the output as appended below.
MY SYSTEM
*****************************************************************
Windows 7 64bit
GhostScript 9.04 for Windows 64 bit ( http://www.ghostscript.com/download/gsdnld.html )
Version: ImageMagick 6.7.1-10 2011-08-21 Q16
MY COMMAND LINE OUTPUT
*****************************************************************
C:\tmp>convert _a.tif -scale 500 _aaaaa.png
C:\tmp>dir
Directory of C:\dev\ruby\mingle_pic_attacher\tmp
2011/07/06 11:43 AM 19 260 1.pdf
2011/07/06 10:52 AM 15 092 2.pdf
1998/09/09 12:57 AM 706 967 _a.tif
2011/08/25 11:36 AM 82 446 _aaaaa.png
C:\tmp>convert 1.pdf -scale 500 11111.png
Magick: `%s' (%d) "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=C:/Users/michelle/AppData/Local/Temp/magick-6Iz_B1q1--0000001" "-fC:/Users/michelle/AppData/Local/Temp/magick-d8ZljhhW" "-fC:/Users/michelle/AppData/Local/Temp/magick-SSiepmdR" @ error/utility.c/SystemCommand/2094.
Magick: Postscript delegate failed `1.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/664.
Magick: missing an image filename `11111.png' @ error/convert.c/ConvertImageCommand/3015.
C:\tmp>convert 2.pdf -scale 500 22222.png
(get the same error message as above)
*****************************************************************
I am sure I must be doing something stupid here because I am surely not the only one needing to convert .pdf's to another format. Anyone got any ideas where my ignorance lies?
Thank-you in advance, Michelle
Can not convert .pdf to .png (IM6.7.1, win7-64bit, GS9.04)
Re: Can not convert .pdf to .png (IM6.7.1, win7-64bit, GS9.0
Okay I've got it working. For anyone else with the same problem I think its 64-bit related. I had installed ghost script 64 bit version. I also installed it after installing image magick.
THE FIX WHICH WORKS FOR ME: (on windows 7 64 bit)
1. Uninstall ghost script and image magick
2. Install ghost script 32 bit version
3. Install image-magick 32 bit version
And now this works for me: convert 2.pdf -scale 500 22222.png
</close> Michelle
THE FIX WHICH WORKS FOR ME: (on windows 7 64 bit)
1. Uninstall ghost script and image magick
2. Install ghost script 32 bit version
3. Install image-magick 32 bit version
And now this works for me: convert 2.pdf -scale 500 22222.png
</close> Michelle
-
- Posts: 2
- Joined: 2012-01-11T19:54:31-07:00
- Authentication code: 8675308
Re: Can not convert .pdf to .png (IM6.7.1, win7-64bit, GS9.0
@Michelle -
THANK YOU SO VERY MUCH!!!
I have been pulling out what I have left of my hair for the last 4 hours trying to get this to work! Followed your instructions and now I too can convert PDF > JPG !
Same setup: Win 7 - 64 bit, but I too had installed IM first, 64 bit version, then GS and also the 64 bit version.
Now I just have to figure out how to do a batch conversion; all PDFs in a directory to same-named JPGs. I'm sure there's an answer here somewhere ... off to track it down!
Thanks again
Cheers!
Lyle
THANK YOU SO VERY MUCH!!!

I have been pulling out what I have left of my hair for the last 4 hours trying to get this to work! Followed your instructions and now I too can convert PDF > JPG !

Same setup: Win 7 - 64 bit, but I too had installed IM first, 64 bit version, then GS and also the 64 bit version.
Now I just have to figure out how to do a batch conversion; all PDFs in a directory to same-named JPGs. I'm sure there's an answer here somewhere ... off to track it down!
Thanks again

Cheers!
Lyle
-
- Posts: 2
- Joined: 2012-01-11T19:54:31-07:00
- Authentication code: 8675308
Re: Can not convert .pdf to .png (IM6.7.1, win7-64bit, GS9.0
Found it!
Mogrify
To convert all the PDFs in one folder to JPGs while keeping the same filename for the JPGs as the PDFs:
mogrify -format jpg *.pdf
That's it
Exactly what I was looking for!

Mogrify

To convert all the PDFs in one folder to JPGs while keeping the same filename for the JPGs as the PDFs:
mogrify -format jpg *.pdf
That's it
