Problem converting eps files IM 6.7.5-6

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
markzman
Posts: 20
Joined: 2010-02-25T00:43:45-07:00
Authentication code: 8675308

Problem converting eps files IM 6.7.5-6

Post by markzman »

Having some trouble converting eps files
see below parameters and link of sample eps file

Code: Select all

mogrify -format png -colorspace rgb -flatten -density 300 -resize 520
http://www.mediafire.com/?6id2nn65dztg6wv

even on normal conversion IM just wont respond
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Problem converting eps files IM 6.7.5-6

Post by fmw42 »

You have to be more patient. It takes about 1.5 minutes to just read the eps file on my IM 6.7.5.7 Q16 Mac OSX Snow Leopard (INTEL dual core with 4GB RAM)

If I simplify your processing the following works.

time convert -colorspace rgb -density 72 2011jd016761-p04.eps -background white -flatten 2011jd016761-p04.png
real 1m30.013s
user 1m29.035s
sys 0m0.242s

Note +repage after the -trim is not needed for jpg, though does not hurt

For larger density values, it will take longer to process assuming you have enough memory. If not, then try memory management such as at http://www.imagemagick.org/Usage/files/#massive

One other problem is that your eps file when converted has a large amount of white space at the top that is several times the height of the image data. So you probably want to use -trim to cut out all the excess white space.


time convert -colorspace rgb -density 72 2011jd016761-p04.eps -background white -flatten -fuzz 10% -trim 2011jd016761-p04.png
real 1m27.525s
user 1m27.145s
sys 0m0.184s

time convert -colorspace rgb -density 150 2011jd016761-p04.eps -background white -flatten -fuzz 10% -trim 2011jd016761-p04.png
real 9m27.575s
user 9m24.320s
sys 0m0.673s


So it really slows down as I double the density (which would quadruple the area).
markzman
Posts: 20
Joined: 2010-02-25T00:43:45-07:00
Authentication code: 8675308

Re: Problem converting eps files IM 6.7.5-6

Post by markzman »

thanks for this, I guess I need to have the vector files simplified or find alternative ways to make a speedy conversion process.
Post Reply