A little help please

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
QuazzieM

A little help please

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: A little help please

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: A little help please

Post 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
QuazzieM

Re: A little help please

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: A little help please

Post 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).
Post Reply