Page 1 of 1

eps geometry is incorrect 6.7.8-2

Posted: 2012-07-13T11:13:12-07:00
by buffym
We upgraded to ImageMagick 6.7.6-6, q8. The geometry is not being read correctly from some eps files for us, and the result is when we convert the eps to jpg, the converted file is much smaller than the original. I installed 6.7.8-2 and got the same results. The conversion works properly and reports the correct geometry in version 6.6.9-10.

A sample eps can be downloaded from this link -- download the "Original" version.

In the sample, the newer versions of ImageMagick report the geometry as 133x198 - way too small, the older version reports the geometry as 739x1100, which is correct.

https://ir.imagerelay.com/sb/ba70f315-d ... d0a7f9db97

Thank you in advance for any help you can provide. We are currently down-grading our installations until we can get this resolved.

Re: eps geometry is incorrect 6.7.8-2

Posted: 2012-07-13T11:39:31-07:00
by magick
SSB049P9.eps includes these statements:
  • %%BoundingBox: 0 0 133 198
    %%HiResBoundingBox: 0 0 133.2 198.36
You can override with an explicit size:
  • convert -page 740x1102 -verbose SSB049P9.eps -colorspace sRGB image.jpg

Re: eps geometry is incorrect 6.7.8-2

Posted: 2012-07-14T06:16:27-07:00
by buffym
So the older version was reporting an incorrect size, and that has been corrected in the newer versions? Just trying to understand why it used to work the way I expected. I will certainly tryout the page command. Thanks!

Version: ImageMagick 6.7.6-6 2012-04-17 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP

test.eps PS 740x1102=>133x198 133x198+0+0 8-bit ColorSeparation DirectClass 105KB 0.010u 0:00.000

=====================================================================================================================

Version: ImageMagick 6.6.9-5 2011-04-20 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenM

test.eps PS 740x1102=>739x1100 739x1100+0+0 8-bit ColorSeparation DirectClass 3.252MB 0.010u 0:00.010

=====================================================================================================================

Re: eps geometry is incorrect 6.7.8-2

Posted: 2012-07-14T06:28:41-07:00
by buffym
I tried the -page option, and I did get an image of the correct dimensions, 720x1102, but what I got was a small watch in the bottom left corner and a lot of white space, instead of the large watch that I was expecting, and like what I used to get with the prior version, and what I see when I open the original in GIMP using the correct 400x400 resolution. There is a higher resolution version of the watch in there, I just need to know how to get it out properly. Thank you for your time.

Re: eps geometry is incorrect 6.7.8-2

Posted: 2012-07-16T07:35:43-07:00
by buffym
For what it's worth, I figured out how to get the sized I needed from that image. If I specify the density of the eps like this:

convert -density 400 test.eps test.jpg

I get the correct size in test.jpg.

I referenced this thread to get to this solution: viewtopic.php?f=1&t=11059