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

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
thbar

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

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

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

Post 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.
thbar

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

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