Hi and thank you for reading my 1st q.
(from spending 2 days on this & seeing how many other people are having trouble too, i can tell it probably wont be my last! )
anyway here is my problem: in the command prompt just to test everything is working:
converting IMAGE => IMAGE: works just fine:
eg: convert test.jpg test.png
result is fantastic! what an awesome prgm.
but PDF => IMAGE (jpg, png, etc) gives an error:
eg: convert "onepage.pdf" onepage.png
result:
convert.exe: unable to open image `onepage.pdf': No such file or directory @ error/blob.c/OpenBlob/2641.
convert.exe: no images defined `onepage.png' @ error/convert.c/ConvertImageCommand/3066.
Some background info:
My system is an oldy but a goody: MS XP with service Pack 3
I installed ghostscript (gs906w32) in my D:/XAMPP directory before installing ImageMagick-6.8.1-9-Q16-x86-dll in D:/XAMPP
earlier today and yesterday i tried other combinations because i thought it could be the age of my system but it gave me the same problem. I also tried directly installing both under D:/ but still same problem that it cant find the file.
The reason i installed both in the XAMPP directory is because ultimately my aim is to use PHP to automatically convert pdfs and just to keep everything together.
Can someone pls tell me what to try next? I really hope someone can help me. This is really troublesome and costing so much time.
Thank you and best regards,
arpeggio
error with simple convert from pdf to jpg or png
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: error with simple convert from pdf to jpg or png
What happens when you try the following two commands?
Code: Select all
identify onepage.pdf
Code: Select all
dir onepage.pdf
snibgo's IM pages: im.snibgo.com
Re: error with simple convert from pdf to jpg or png
Hi snibgo and thank you very much for your questions.
i received the following results:
identify onepage.pdf
identify.exe: unable to open image `onepage.pdf': No such file or directory @ er
ror/blob.c/OpenBlob/2641.
dir onepage.pdf
Volume in drive C has no label.
Volume Serial Number is 9C0E-F3D3
Directory of C:\Documents and Settings\UserA
File Not Found
If i do this with just plain image files (eg: jpg, png, etc) i get the following:
identify castle_logo.png
castle_logo.png PNG 100x75 100x75+0+0 8-bit sRGB 13.9KB 0.016u 0:00.014
dir castle_logo.png
Volume in drive C has no label.
Volume Serial Number is 9C0E-F3D3
Directory of C:\Documents and Settings\UserA
01/07/2013 12:58 AM 13,916 castle_logo.png
1 File(s) 13,916 bytes
0 Dir(s) 2,805,780,480 bytes free
Incidently all the files i am trying to convert including onepage.pdf are directly in the UserA directory.
Do the above results tell u much? I dearly hope so!!
Thank you so much and with best regards,
arpeggio
i received the following results:
identify onepage.pdf
identify.exe: unable to open image `onepage.pdf': No such file or directory @ er
ror/blob.c/OpenBlob/2641.
dir onepage.pdf
Volume in drive C has no label.
Volume Serial Number is 9C0E-F3D3
Directory of C:\Documents and Settings\UserA
File Not Found
If i do this with just plain image files (eg: jpg, png, etc) i get the following:
identify castle_logo.png
castle_logo.png PNG 100x75 100x75+0+0 8-bit sRGB 13.9KB 0.016u 0:00.014
dir castle_logo.png
Volume in drive C has no label.
Volume Serial Number is 9C0E-F3D3
Directory of C:\Documents and Settings\UserA
01/07/2013 12:58 AM 13,916 castle_logo.png
1 File(s) 13,916 bytes
0 Dir(s) 2,805,780,480 bytes free
Incidently all the files i am trying to convert including onepage.pdf are directly in the UserA directory.
Do the above results tell u much? I dearly hope so!!
Thank you so much and with best regards,
arpeggio
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: error with simple convert from pdf to jpg or png
Code: Select all
dir onepage.pdf
Volume in drive C has no label.
Volume Serial Number is 9C0E-F3D3
Directory of C:\Documents and Settings\UserA
File Not Found
snibgo's IM pages: im.snibgo.com
Re: error with simple convert from pdf to jpg or png
Well i feel like a complete idiot but you are right snibgo. Thank you.
I could've sworn it was there last night! but it works like a dream now (though only on single page pdfs for the moment)
still need to play around with it to see if i can render multiple page pdfs.
thanks so much for your constructive questions.
awesome program.
best regards
arpeggio
I could've sworn it was there last night! but it works like a dream now (though only on single page pdfs for the moment)
still need to play around with it to see if i can render multiple page pdfs.
thanks so much for your constructive questions.
awesome program.
best regards
arpeggio
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: error with simple convert from pdf to jpg or png
to render multiple page pdf files that do not have transparency, I believe you have to switch the sDEVICE to pnmraw from pngalpha in the delegates.xml file
<delegate decode="ps:alpha" stealth="True" command=""gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/>
IM uses ghostscript and as I understand it, it cannot handle both multiple page pdf files and transparency at the same time. You have to pick one or the other.
But if some one else knows otherwise, I will defer to them.
<delegate decode="ps:alpha" stealth="True" command=""gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pnmraw" -dTextAlphaBits=%u -dGraphicsAlphaBits=%u "-r%s" %s "-sOutputFile=%s" "-f%s" "-f%s""/>
IM uses ghostscript and as I understand it, it cannot handle both multiple page pdf files and transparency at the same time. You have to pick one or the other.
But if some one else knows otherwise, I will defer to them.