Convert EPS to JPG or PNG doesn't work

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
MisterJpa
Posts: 11
Joined: 2018-07-23T02:32:48-07:00
Authentication code: 1152

Convert EPS to JPG or PNG doesn't work

Post by MisterJpa »

Hello,

- Version: ImageMagick 7.0.8-7 Q16 x86_64 2018-07-19 https://www.imagemagick.org
- Working on mac : Yosemite 10.10.5

I'm trying to convert a file called test.eps into another format : png or jpeg (I will need both at the end :lol: )
However, I'm having the following couple of command / errors :

convert test.eps test.png
--> convert: no images defined `test.png' @ error/convert.c/ConvertImageCommand/3275.

magick test.eps test.png
magick: no images for write '-write' 'test.png' at CLI arg 2 @ error/operation.c/CLINoImageOperator/4750.

I have tried several other way to write the command (adding density for the conversion, adding EPS: before test.eps name cause I read it on other topics viewtopic.php?f=3&t=33182&p=151909&hili ... ed#p151909)) but I'm always facing the same issue.

The eps file is available here : https://www.dropbox.com/s/pzf68tvz2cjcuwk/test.eps?dl=0
But I think it's not related to the EPS as I've tried with other EPS and it was not working neither.


Thanks by advance for you help,
MisterJpa
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert EPS to JPG or PNG doesn't work

Post by snibgo »

"-verbose" may show the version of Ghostscript used. If older than about 9.19, I suggest you try an upgrade.

The conversion works fine with IM v6.9.9-50 and v7.0.7-28 with GS 9.19 on Windows 8.1. There may be a bug in newer IM or GS.
snibgo's IM pages: im.snibgo.com
MisterJpa
Posts: 11
Joined: 2018-07-23T02:32:48-07:00
Authentication code: 1152

Re: Convert EPS to JPG or PNG doesn't work

Post by MisterJpa »

Hello,

My issue was that Ghostscript was not installed.
:lol:

Reading documentation, I see that it's also use to convert PDF files. Can be useful for the future :)

Thanks for the help.
Post Reply