convert will result in file with 1x1 dpi
Posted: 2014-01-28T13:23:46-07:00
Hello,
currently I'm using Ubuntu 12.04 LTS with version:
If I use identify to extract information from some image (Download) the result is:
If I convert this image to JPG I get:
So, the Resolution, Print size and Units are set after the conversion.
With a newer version of ImageMagick (e.g. 6.8.8-2 or -3) I get:
As you see, the Units are still Undefined and Resolution and Print size are missing. They are already missing in the original PNG.
This conversion leads to some serious errors. If I open the images in GIMP it says:
Other imaging tools will also "set" the Resolution to 1x1 DPI. The image is so huge that I cannot embed in some other documents (e.g. LaTeX).
My questions: What has changed between these two version? Why does identify do not print all informations anymore? Was the change intentional or is it a bug? Can I help to fix it somehow?
Best regards
Dee
currently I'm using Ubuntu 12.04 LTS with version:
Code: Select all
$ identify -version
Version: ImageMagick 6.6.9-7 2012-08-17 Q16 http://www.imagemagick.org
Code: Select all
$ identify -verbose winprog4-Darktable.png
Image: winprog4-Darktable.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 1216x651+0+0
Resolution: 72x72
Print size: 16.8889x9.04167
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: RGB
Code: Select all
$ convert winprog4-Darktable.png winprog4-Darktable.jpg
$ identify -verbose winprog4-Darktable.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 1216x651+0+0
Resolution: 72x72
Print size: 16.8889x9.04167
Units: PixelsPerInch
Type: TrueColor
Endianess: Undefined
Colorspace: RGB
With a newer version of ImageMagick (e.g. 6.8.8-2 or -3) I get:
Code: Select all
$ identify -verbose winprog4-Darktable.png
Image: winprog4-Darktable.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: DirectClass
Geometry: 1216x651+0+0
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Code: Select all
$ convert winprog4-Darktable.png winprog4-Darktable.jpg
$ identify -verbose winprog4-Darktable.jpg
Image: winprog4-Darktable.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 1216x651+0+0
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
This conversion leads to some serious errors. If I open the images in GIMP it says:
Code: Select all
Original PNG:
Print size: 428,98 × 229,66 millimeters
Resolution: 72x72 ppi
Converted JPG (ImageMagick 6.6.9-7):
Print size: 428.98 × 229.66 millimeters
Resolution: 72x72 ppi
Converted JPG (ImageMagick 6.8.8-3):
Print size: 30886.40 × 16535.40 millimeters
Resolution: 1 × 1 ppi
My questions: What has changed between these two version? Why does identify do not print all informations anymore? Was the change intentional or is it a bug? Can I help to fix it somehow?
Best regards
Dee