potential bug setting density and units in PNG IM 6.5.4.0
Posted: 2009-06-29T11:25:43-07:00
IM 6.5.4.0 Q16 Mac OSX Tiger
Create test image:
convert rose: rose.png
identify -verbose rose.png
Image: rose.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 72x72
Print size: 0.972222x0.638889
Units: Undefined
Now change the density and units:
convert rose.png -density 300x300 -units pixelsperinch rose2.png
identify -verbose rose2.png
Image: rose2.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 118.11x118.11
Print size: 0.592668x0.389467
Units: PixelsPerCentimeter
Create test image:
convert rose: rose.png
identify -verbose rose.png
Image: rose.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 72x72
Print size: 0.972222x0.638889
Units: Undefined
Now change the density and units:
convert rose.png -density 300x300 -units pixelsperinch rose2.png
identify -verbose rose2.png
Image: rose2.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 70x46+0+0
Resolution: 118.11x118.11
Print size: 0.592668x0.389467
Units: PixelsPerCentimeter