Page 1 of 1

A little help please

Posted: 2009-08-31T20:31:58-07:00
by QuazzieM
Hey guys,

I'm hoping someone could please explain to me what the error means below. Basically I'm replacing our intranet server and trying to get the intranet up and running on Server 2k8. I'm slowly getting through all the pages in testing but Im stuck on this current one where the DTP department uploads catalogs to the intranet and ImageMagick converts them to *.bmp files.. The example command that runs in the instance is seen below.

C:\Users\Admin>"C:\Program Files (x86)\ImageMagick-6.2.7-Q16\Convert.exe" -crop 666x779+88+206
pdf:"D:\Inetpub\wwwroot\Catarchive\2009\R\50\pdf\01.pdf" bmp:"D:\Inetpub\wwwroot\Catarchive\2009\R\50\pdf\01.bmp"

Convert.exe: `%s': %s "gswin32c.exe" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g842x1191""-r72x72" "-sOutputFile=C:\Users\Admin\AppData\Local\Temp\1\magick-u07hqp3c""-fC:\Users\Admin\AppData\Local\Temp\1\magick-03s32j52" "-fC:\Users\Admin\AppData\Local\Temp\1\magick-vvq4ujj7".

Convert.exe: Postscript delegate failed `D:\Inetpub\wwwroot\Catarchive\2009\R\50\pdf\01.pdf'.

Convert.exe: missing an image filename `bmp:D:\Inetpub\wwwroot\Catarchive\2009\R\50\pdf\01.bmp'.

Hope this means something to someone

Cheers

Re: A little help please

Posted: 2009-08-31T21:06:42-07:00
by anthony
It mean ghostscript did not work. Presumably because it was not installed!

Ghostscript is used by ImageMagcik to convert Postscript and PDF file formats to raster images.

Re: A little help please

Posted: 2009-08-31T21:08:32-07:00
by fmw42
probably means that you did not install all the image type delegate libraries for PDF (not sure anything is needed for BMP). For PDF you need Ghostscript.

see http://www.imagemagick.org/download/delegates/

type the following:

convert -list configure

the line starting with DELEGATES will tell you which ones are installed and the IM knows about. For example on my system:

DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms lqr openexr png tiff x11 xml zlib


If installed, you should not need to prefix images with PDF: or BMP:

Also the correct syntax is:

convert input options output

see

http://www.imagemagick.org/Usage/basics/#cmdline

on windows also see

http://www.imagemagick.org/Usage/windows/

also after -crop you usually want to follow with +repage

see

http://www.imagemagick.org/Usage/crop/#crop_repage

Re: A little help please

Posted: 2009-08-31T21:09:34-07:00
by QuazzieM
Thank you so much for the quick reply Ill go and look for this Ghostscript now :) And let you know how it goes

Update:.

Ghostscript fixed it :) Thanks for the help guys

Re: A little help please

Posted: 2009-09-01T08:01:43-07:00
by magick
Do you have Ghostscript installed on your server? Is it a modern version. PDF's that fail to render generally require a very up-to-date release of Ghostscript (at least 8.64 or 8.70).