Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

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
stoussaint78
Posts: 5
Joined: 2020-01-29T02:53:21-07:00
Authentication code: 1152

Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by stoussaint78 »

The result of the following command executed against an EPS (Photoshop) image returns different results depending of IM version.

Code: Select all

identify -format "%x" image.eps
For the 7.0 branch
  • Until the 7.0.8-53 release it returns : 300dpi
  • The 7.0.8-54 release throws an exception :
    identify: MagickCore/string.c: 1748: SetStringInfoLength: Assertion `string_info != (StringInfo *) NULL' failed.
  • From 7.0.8-55 release it returns : 72dpi
Is there a reason this command changes its behavior ?
Last edited by stoussaint78 on 2020-01-29T11:26:41-07:00, edited 1 time in total.

User avatar
dlemstra
Posts: 1610
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Detected resolution value for EPS file change from 7.0.53 -> 7.0.55

Post by dlemstra »

These version numbers don't make sense to me. Have you tried the latest release?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

stoussaint78
Posts: 5
Joined: 2020-01-29T02:53:21-07:00
Authentication code: 1152

Re: Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by stoussaint78 »

Sorry, I misspelled the version labels. I fix it in my original message.

Yes, I tried with the latest release (7.0.9-19) which still returns 72dpi.

stoussaint78
Posts: 5
Joined: 2020-01-29T02:53:21-07:00
Authentication code: 1152

Re: Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by stoussaint78 »

Should I provide more information for this issue ? I can provide an image if needed to understand if the returned value is the expected one since the observed implementation changes.

User avatar
dlemstra
Posts: 1610
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by dlemstra »

Please provide the file. And what is your Ghostscript version?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

stoussaint78
Posts: 5
Joined: 2020-01-29T02:53:21-07:00
Authentication code: 1152

Re: Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by stoussaint78 »

I made an EPS file available at https://dl.4dconcept.fr/feb555y1.

The used GS version is 9.26

User avatar
fmw42
Posts: 26290
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by fmw42 »

GS 9.26 is known to have issue. I cannot say if this is one of the issues.

User avatar
dlemstra
Posts: 1610
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by dlemstra »

In version 7.0.8-53 your image was read with a DPI of 72 but we incorrectly reported that the density of the image was 300. This has been fixed and that is why we now report 72 instead of 300.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

User avatar
magick
Site Admin
Posts: 11223
Joined: 2003-05-31T11:32:55-07:00

Re: Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by magick »

Its actually a bug! We'll identify a fix and post a patch within a few days. Thanks for alerting us to this problem.

stoussaint78
Posts: 5
Joined: 2020-01-29T02:53:21-07:00
Authentication code: 1152

Re: Detected resolution value for EPS file change from 7.0.8-53 -> 7.0.8-55

Post by stoussaint78 »

Just to mention, this bug is also effective on the 6.9 branch. It appears between 6.9.10-53 --> 6.9.10-55.

Thanks for your commitment

Post Reply