Resolution problems

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hson

Resolution problems

Post by hson »

I'm having some problems with the resolution of some images when mounting them in InDesign.

What I try to do is convert a large image to a smaller one with size max 700x700 pixels and set to 72DPI.

The original image have the following properties:

Code: Select all

  Geometry: 7323x5315
...
  Resolution: 300x300
  Units: PixelsPerInch
...
    X Resolution: 3000000/10000
    Y Resolution: 3000000/10000
I run the following command to convert the original image

Code: Select all

convert GT6030.1.jpg -filter Lanczos -resize 700x700 -quality 85 -density 72x72 GT6030_out.jpg
When checking the output image with

Code: Select all

identify -verbose |grep Resolution 
I get some different output depending on ImageMagick version (all versions compiled with exact same options on the same machine and installed in separate directories).

6.2.9-8 and 6.3.0-7 :

Code: Select all

  Resolution: 300x300
    X Resolution: 3000000/10000
    Y Resolution: 3000000/10000
    Resolution Unit: 2
6.3.1-7 :

Code: Select all

  Resolution: 72x72
6.3.2-9, 6.3.3-10 and 6.3.4-10 :

Code: Select all

  Resolution: 72x72
  Exif:ResolutionUnit: 2
  Exif:XResolution: 72/1
  Exif:YResolution: 72/1
6.3.5-10 :

Code: Select all

  Resolution: 300x300
  Exif:ResolutionUnit: 2
  Exif:XResolution: 72/1
  Exif:YResolution: 72/1
6.3.6-10, 6.3.8-11, :

Code: Select all

  Resolution: 300x300
  Exif:ResolutionUnit: 2
  Exif:XResolution: 72/10000
  Exif:YResolution: 72/10000
6.3.9-10 and 6.4.0-11 :

Code: Select all

  Resolution: 300x300
    exif:ResolutionUnit: 2
    exif:XResolution: 72/10000
    exif:YResolution: 72/10000
6.4.2-10 :

Code: Select all

  Resolution: 0.0072x0.0072
    exif:ResolutionUnit: 2
    exif:XResolution: 72/10000
    exif:YResolution: 72/10000
6.4.3-10, 6.4.4-10 :

Code: Select all

  Resolution: 0.03x0.03
    exif:ResolutionUnit: 2
    exif:XResolution: 300/10000
    exif:YResolution: 300/10000
6.4.5-9 :

Code: Select all

  Resolution: 0.03x300
    exif:ResolutionUnit: 2
    exif:XResolution: 300/10000
    exif:YResolution: 300/1
6.4.6-9, 6.4.7-10, 6.4.8-10 and 6.4.9-8 :

Code: Select all

  Resolution: 0.0072x72
    exif:ResolutionUnit: 2
    exif:XResolution: 72/10000
    exif:YResolution: 72/1
Am I doing something wrong or is this irradic behavior usual?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Resolution problems

Post by anthony »

The erratic behavior is in response to bugs problems and queries. Basically Cristy (Magick) attempts to improve or fix things according to bug reports, and as a result the output here changes.

If you don't want this then try to figure out what SHOULD be output, not just for you but for everyone and look/fix at the code.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply