EPS with black border not converted correctly

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
dragondgold
Posts: 2
Joined: 2017-07-13T10:33:53-07:00
Authentication code: 1151

EPS with black border not converted correctly

Post by dragondgold »

I'm converting some EPS files to png with the following command:

Code: Select all

magick convert drawing.eps -background white -alpha Remove out.png
This is the EPS file opened in illustrator:

Image

As you can see, there is a black border with white space after it. This is the PNG image I'm getting from Image Magick:

Image

The black border is there but only the white space on the right is being kept, the rest is removed, how can I make Image Magick to keep all the white space?

I'm using ImageMagick 7.0.6-0 Q8 x64 2017-06-11 on Windows 10 64bit
EPS file: https://1drv.ms/u/s!AiLvi08ZlJGciftCImLYlmrWjPjpKQ
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: EPS with black border not converted correctly

Post by snibgo »

According to Adobe ImageReady CS2, there is a white margin on the right but not elsewhere.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS with black border not converted correctly

Post by fmw42 »

I do not think this is an Imagemagick issue. I see the same thin black border using Mac Preview and MS Word. In any case, Imagemagick uses Ghostscript to read EPS, PS and PDF files. So at best it is an issue with Ghostscript.
dragondgold
Posts: 2
Joined: 2017-07-13T10:33:53-07:00
Authentication code: 1151

Re: EPS with black border not converted correctly

Post by dragondgold »

Thank you, you are right, this is not a Ghostscript or Image Magick issue, the issue is how Illustrator is exporting the EPS :)
Post Reply