eps geometry is incorrect 6.7.8-2

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
buffym
Posts: 6
Joined: 2011-04-26T08:42:35-07:00
Authentication code: 8675308

eps geometry is incorrect 6.7.8-2

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: eps geometry is incorrect 6.7.8-2

Post 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
buffym
Posts: 6
Joined: 2011-04-26T08:42:35-07:00
Authentication code: 8675308

Re: eps geometry is incorrect 6.7.8-2

Post 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

=====================================================================================================================
buffym
Posts: 6
Joined: 2011-04-26T08:42:35-07:00
Authentication code: 8675308

Re: eps geometry is incorrect 6.7.8-2

Post 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.
buffym
Posts: 6
Joined: 2011-04-26T08:42:35-07:00
Authentication code: 8675308

Re: eps geometry is incorrect 6.7.8-2

Post 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
Post Reply