Page 1 of 1

pdf to jpeg not working

Posted: 2009-11-05T16:47:46-07:00
by peterbradd
Hi,

I'm trying to convert PDF to JPEG

The file is on /users/peter/desktop and is named 'a.pdf'

Result below:

peter-bradds-powerbook-g4-15:~ peter$ cd /users/peter/desktop
peter-bradds-powerbook-g4-15:/users/peter/desktop peter$ convert a.pdf a.jpg
sh: line 1: gs: command not found
convert: Postscript delegate failed `a.pdf': No such file or directory @ pdf.c/ReadPDFImage/634.
convert: missing an image filename `a.jpg' @ convert.c/ConvertImageCommand/2822.

What am i doing wrong?

Thanks

Re: pdf to jpeg not working

Posted: 2009-11-05T17:55:37-07:00
by fmw42
looks like you need to install or get IM to recognize Ghostscript as it used GS to process PDFs.

type

convert -list configure

and look at the line starting with DELEGATES and see if it lists "gs" and "jpg"

if not, then download and install the delegates you need and reinstall IM.

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

or search the web for more current versions

How did you install IM? From binary or from source. Did you use MacPorts or Fink or do it manually. If you used MacPorts or Fink, then you need to use them to install the delegates as well as they all must be in special directories that are set up by those tools.

Re: pdf to jpeg not working

Posted: 2009-11-05T18:57:07-07:00
by peterbradd
Thank for the quick reply

* I used mac ports
*they are not installed
* what do I enter into terminal to install required delegates using mac ports? I had a quick look but couldn't find an answer.
* how do i reinstall IM? do i first have to uninstall or can i install over the top?

Thanks in advance,
Peter

Re: pdf to jpeg not working

Posted: 2009-11-05T19:32:00-07:00
by fmw42
I have never used MacPorts. But I assume you need to get the delegates from the list of those supported by MacPorts. Install using MacPorts, then reinstall IM using MacPorts. I don't think you need to remove the old one, just install the same one again.

I have always installed manually. It seemed to me easier for IM, but perhaps harder for some delegates that needed other supporting delegates installed first. Ghostscript was a bit of a pain on the Mac as it needs to install gsc and the ghostscript framework. Then all the delegates are in the same place that IM expects them to be in.

With MacPorts, it has to put them all in its own directory. So you have to use MacPorts for it all.


I am on Mac OSX Tiger, still.

Here is what I have installed:

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


See my notes at:
viewtopic.php?f=1&t=10442

also see the IM notes about installing from source at
http://www.imagemagick.org/download/www ... .html#unix
http://www.imagemagick.org/script/advan ... lation.php

Re: pdf to jpeg not working

Posted: 2009-11-06T00:42:01-07:00
by peterbradd
*I'm also on mac 10.4

*I installed ghostscript using macports through terminal with line

sudo port install ghostscript

*I needed to FIRST install xcode 2.5 which i downloaded from the apple developer connection member site, (need to be a adc member) under developer tools. xcode versions are listed.

* I then reentered convert a.pdf a.jpeg and it was successful.

Thanks for your help!