Page 1 of 1
EPS Conversion and Identify Problem
Posted: 2010-03-24T08:39:00-07:00
by Ntoriuscpm
I'm having a random problem with about 10% of all EPS's I read and convert through I.M.
I'm utilizing the command line, and for example, use this basic command:
The problem is that I.M. will take over a minute to identify or convert a select few EPS's
File size isn't the issue, I can successfully identify and convert EPS's as large as 30 mb's, but will have issues with files that are 5 mb's. At first I thought it might be an issue with my Ghostscript installation, but I installed GhostGum, and opened some of these problem EPS's through GSView. Buit, I could quickly open these EPS's and convert them with ease through GSView in a matter of seconds...
I've also tested this on multiple boxes, and get the same result...
I'm using:
ImageMagick-6.5.9-Q16
Ghostscript 8.64
Here is a link to a sample EPS file that gives me issues:
http://ims3.com/testing/Nordstrom.eps
Any ideas on what is going on?
Re: EPS Conversion and Identify Problem
Posted: 2010-03-24T09:18:33-07:00
by magick
We're using ImageMagick 6.6.0-8 and Ghostscript 8.71. Identify verbose returns within 2 seconds.
Re: EPS Conversion and Identify Problem
Posted: 2010-03-24T10:08:29-07:00
by Ntoriuscpm
Do you use this EPS?
http://ims3.com/testing/Nordstrom.eps
I updated to ImageMagick 6.6.0-8 and Ghostscript 8.71 and got the same results as before. I've always used the self installers, I don't think that would make a difference?
When the info
FINALLY does output, I've noticed a strange xml svg object (in the middle of the data output) hidden within the output.... I never see that with EPS's that work properly...
Thanks for the replay, I hadn't tried to upgrade my GS.
Re: EPS Conversion and Identify Problem
Posted: 2010-03-24T10:32:38-07:00
by snibgo
Under Windows7, IM 6.6.0-8, GS 8.71, identify -verbose Nordstrom.eps takes about 90 seconds. Without -verbose, it takes about 10 seconds.
Re: EPS Conversion and Identify Problem
Posted: 2010-03-24T10:32:58-07:00
by magick
We see the slowdown under Windows. The same command takes a minute under Windows and just a few seconds under Linux.
Re: EPS Conversion and Identify Problem
Posted: 2010-03-24T10:41:23-07:00
by Ntoriuscpm
You'll run into the same performance issue when you try to convert the EPS to another format aswell. I'm guessing this issue is Windows only, I'm using XP and Win Server 2003.
I'm not the most educated person on the inner relationship of Ghostscript and I.M. so correct me if I'm wrong. But I.M. depends on Ghostscript to handle Post script files like EPS's, correct? I installed GSView (which is a UI for using Ghostscript) and tried to open and convert the EPS to a .jpg. It worked perfectly, and I didn't have any performance issues... Would it be possible that, there is an issue occurring between I.M. and Ghostscript?
Re: EPS Conversion and Identify Problem
Posted: 2010-03-24T11:55:06-07:00
by magick
It could very well be an issue with Ghostscript. Or its possible ImageMagick could be running out of memory and the pixels may be cached to disk which is much slower than memory (see
http://www.imagemagick.org/script/archi ... .php#cache). We will investigate further as time permits.
Re: EPS Conversion and Identify Problem
Posted: 2010-03-25T11:30:23-07:00
by magick
ImageMagick extracts the rendering resolution from the Postscript or PDF file. Nordstrom.eps has a resolution of 300x300 so it creates a fairly large image. We'll add a patch, available by late tomorrow to force ImageMagick to render at a lower resolution with this command:
- identify -verbose -density 72 Nordstrom.eps
The lower resolution will reduce the elapsed time of the identify command significantly.