I work under Windows and I try to convert a .ps document to a .png image. I know i need Ghostscript in order to decode postscript. My problem is that my ghostscript commands are not in my PATH and i can't add them (I use a copy/paste version of the ghostscript directory, can't make a real installation for several reasons).
I've searched the forum and it seems I need to configure the delegates.xml with the local path of my ghostscript executable.
Delegates.xml seems to reference the gs command by @PSDelegate@, so I tried to remplace it with C:\gs\gs8.54\bin\gswin32c.exe (my GS directory) but it just doesn't work.
Code: Select all
convert -density 400 -resize 40% -quality 100 c:\my_file.ps c:\my_file.png
Code: Select all
convert: `%s': %s "C:/Program Files/gs/gs8.54/bin/gswin32c.exe" -q -dBATCH -dSAF
ER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pnmraw" -dTextAlp
haBits=4 -dGraphicsAlphaBits=4 "-g2033x178" "-r400x400" "-sOutputFile=C:/DOCUME
~1/myprofile/LOCALS~1/Temp/magick-SLv3GuMq" "-fC:/DOCUME~1/myprofile/LOCALS~1/Temp/magick-
Y.hdXGDR" "-fC:/DOCUME~1/myprofile/LOCALS~1/Temp/magick-h5I4394x".
convert: `%s': %s "C:/Program Files/gs/gs8.54/bin/gswin32c.exe" -q -dBATCH -dSAF
ER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pnmraw" -dTextAlp
haBits=4 -dGraphicsAlphaBits=4 "-g2033x178" "-r400x400" "-sOutputFile=C:/DOCUME
~1/myprofile/LOCALS~1/Temp/magick-SLv3GuMq" "-fC:/DOCUME~1/myprofile/LOCALS~1/Temp/magick-
Y.hdXGDR" "-fC:/DOCUME~1/myprofile/LOCALS~1/Temp/magick-h5I4394x" -c showpage.
convert: no decode delegate for this image format `c:\inetpub\wwwroot\doc\test_l
atex.ps'.
convert: Postscript delegate failed `c:\my_file.ps';
convert: missing an image filename `c:\my_file.png'.
So how to tell Imagemagick to use the paths written in delegates.xml?
And what is the exact line to add/modify to link my GS directory?
I'd be grateful to anyone who could help me.
(Excuse my english, I've done my best ^^)