Page 1 of 1

How to get GhostScript on Mac OS X 10.5.2 - can you help ?

Posted: 2008-03-31T03:47:29-07:00
by thbar
Hello,

I'm a newcomer to ImageMagick. I'm trying to convert the first page of a PDF to a JPG using ImageMagick 6.3.5 on Mac OS X 10.5.2.

I searched through Google and it seems that I miss the "gs" command. Here's my output:

Code: Select all

$ convert file.pdf image.jpg
convert: Postscript delegate failed `file.pdf': No such file or directory.
convert: missing an image filename `image.jpg'.
Does anyone know where to download a packaged version of GhostScript for my configuration ?

thanks for any hint!

-- Thibaut

Re: How to get GhostScript on Mac OS X 10.5.2 - can you help ?

Posted: 2008-03-31T04:01:36-07:00
by thbar
I found out so here's the answer in case it's useful to someone else.

I had darwinports installed, so I had to run:

Code: Select all

sudo port install ghostscript
Well now my pdf is converted but the image is almost totally black. That's another issue.

Re: How to get GhostScript on Mac OS X 10.5.2 - can you help ?

Posted: 2008-03-31T04:13:12-07:00
by thbar
And finally I found the answer to my strange colors problem here:

viewtopic.php?f=1&t=10814

To get everything working I had to specify:

Code: Select all

convert -colorspace rgb "file.pdf[0]" output-page-0.jpg
Thanks for this great library!

-- Thibaut