[Pkg-gmagick-im-team] Bug#918642: imagemagick: identify 6.9.10-23 doesn't convert units (pixels per cm/in)
Cédric Boutillier
boutil at debian.org
Mon Jan 7 21:53:11 GMT 2019
Package: imagemagick
Version: 8:6.9.10.23+dfsg-1
Severity: serious
Tags: upstream
Dear Maintainer,
After the upgrade from 6.9.10.14 to 6.9.10.23, I noticed that the
autopkgtests for the package ruby-mini-magick is failing due to one test
about checking units to show the size of the image in cm and inches.
I could isolate the problem by running the `identify` command on a test
image (rgb.png in the spec/fixtures directory of the ruby-mini-magick
source package).
Running:
identify -verbose -units PixelsPerInch rgb.png > output_in.txt
identify -verbose -units PixelsPerCentimeter rgb.png > output_cm.txt
diff -u output_in.txt output_cm.txt
gives me the following with 8:6.9.10-14 from testing:
--- /tmp/output_cm.txt 2019-01-07 22:32:49.257702663 +0100
+++ /tmp/output_in.txt 2019-01-07 22:32:40.457055525 +0100
@@ -3,9 +3,9 @@
Mime type: image/png
Class: PseudoClass
Geometry: 16x12+0+0
- Resolution: 118.11x118.11
- Print size: 0.135467x0.1016
- Units: PixelsPerCentimeter
+ Resolution: 300x300
+ Print size: 0.0533333x0.04
+ Units: PixelsPerInch
Colorspace: sRGB
Type: Palette
Base type: Undefined
@@ -118,12 +118,11 @@
signature: 0d23f0078b8f89ca473e67bb38773cb94fd8ec5591e4207e83ff95cb27a6a0dd
Artifacts:
filename: rgb.png
- units: PixelsPerCentimeter
+ units: PixelsPerInch
verbose: true
Tainted: False
Filesize: 359B
Number pixels: 192
- Pixels per second: 19200B
- User time: 0.010u
- Elapsed time: 0:01.010
+ User time: 0.000u
+ Elapsed time: 0:01.000
Version: ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
whereas it gives the following with 8:6.9.10-23 (with a suffix -23 to
the text files).
--- /tmp/output_cm-23.txt 2019-01-07 22:34:38.136761722 +0100
+++ /tmp/output_in-23.txt 2019-01-07 22:34:45.201163917 +0100
@@ -5,7 +5,7 @@
Geometry: 16x12+0+0
Resolution: 118.11x118.11
Print size: 0.135467x0.1016
- Units: PixelsPerCentimeter
+ Units: PixelsPerInch
Colorspace: sRGB
Type: Palette
Base type: Undefined
@@ -118,7 +118,7 @@
signature: 0d23f0078b8f89ca473e67bb38773cb94fd8ec5591e4207e83ff95cb27a6a0dd
Artifacts:
filename: rgb.png
- units: PixelsPerCentimeter
+ units: PixelsPerInch
verbose: true
Tainted: False
Filesize: 359B
Maybe it was induced by this change?
https://github.com/ImageMagick/ImageMagick6/commit/8c7648a1adf7bba35594074f191affd3ff3263bb
Attaching the reference image and the full output files.
I am setting severity serious, as it breaks the testsuite of
ruby-mini-magick and provides wrong data when identifying images.
Thank you in advance
Cédric
-- Package-specific info:
ImageMagick program version
---------------------------
animate: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
compare: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
convert: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
composite: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
conjure: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
display: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
identify: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
import: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
mogrify: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
montage: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
stream: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages imagemagick depends on:
ii imagemagick-6.q16 8:6.9.10.23+dfsg-1
imagemagick recommends no packages.
imagemagick suggests no packages.
-- no debconf information
-------------- next part --------------
Image: rgb.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: PseudoClass
Geometry: 16x12+0+0
Resolution: 118.11x118.11
Print size: 0.135467x0.1016
Units: PixelsPerCentimeter
Colorspace: sRGB
Type: Palette
Base type: Undefined
Endianess: Undefined
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 192
Red:
min: 0 (0)
max: 255 (1)
mean: 138.167 (0.54183)
standard deviation: 121.923 (0.47813)
kurtosis: -1.89124
skewness: -0.166463
entropy: 0.835989
Green:
min: 0 (0)
max: 255 (1)
mean: 127.667 (0.500654)
standard deviation: 104.376 (0.409317)
kurtosis: -1.51558
skewness: -0.0047654
entropy: 1
Blue:
min: 0 (0)
max: 255 (1)
mean: 106.333 (0.416993)
standard deviation: 114.75 (0.449998)
kurtosis: -1.69198
skewness: 0.328147
entropy: 0.92062
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 124.056 (0.486492)
standard deviation: 113.683 (0.445815)
kurtosis: -1.75989
skewness: 0.0517601
entropy: 0.91887
Colors: 12
Histogram:
16: ( 0, 0, 0) #000000 black
16: ( 0, 0,255) #0000FF blue
16: ( 0,128, 0) #008000 green
16: ( 0,255, 0) #00FF00 lime
16: ( 0,255,255) #00FFFF cyan
16: (128,128,128) #808080 fractal
16: (255, 0, 0) #FF0000 red
16: (255, 0,255) #FF00FF magenta
16: (255,128, 0) #FF8000 srgb(255,128,0)
16: (255,128,128) #FF8080 srgb(255,128,128)
16: (255,255, 0) #FFFF00 yellow
16: (255,255,255) #FFFFFF white
Colormap entries: 13
Colormap:
0: (255, 0,255) #FF00FF magenta
1: ( 0, 0, 0) #000000 black
2: (255, 0, 0) #FF0000 red
3: ( 0,255, 0) #00FF00 lime
4: (255,255, 0) #FFFF00 yellow
5: ( 0,128, 0) #008000 green
6: ( 0, 0,255) #0000FF blue
7: (255,128,128) #FF8080 srgb(255,128,128)
8: ( 0,255,255) #00FFFF cyan
9: (255,128, 0) #FF8000 srgb(255,128,0)
10: (255,255,255) #FFFFFF white
11: (128,128,128) #808080 fractal
12: (255,255,255) #FFFFFF white
Rendering intent: Perceptual
Gamma: 0.45455
Chromaticity:
red primary: (0.63999,0.33001)
green primary: (0.3,0.6)
blue primary: (0.15,0.05999)
white point: (0.31269,0.32899)
Background color: srgb(255,255,255)
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 16x12+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Properties:
date:create: 2019-01-07T22:09:07+01:00
date:modify: 2019-01-07T22:09:07+01:00
png:bKGD: chunk was found (see Background color, above)
png:cHRM: chunk was found (see Chromaticity, above)
png:gAMA: gamma=0.45455 (See Gamma, above)
png:IHDR.bit-depth-orig: 4
png:IHDR.bit_depth: 4
png:IHDR.color-type-orig: 3
png:IHDR.color_type: 3 (Indexed)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height: 16, 12
png:pHYs: x_res=11811, y_res=11811, units=1
png:PLTE.number_colors: 13
png:sRGB: intent=0 (Perceptual Intent)
png:text: 2 tEXt/zTXt/iTXt chunks were found
png:tIME: 2019-01-07T23:08:56Z
signature: 0d23f0078b8f89ca473e67bb38773cb94fd8ec5591e4207e83ff95cb27a6a0dd
Artifacts:
filename: rgb.png
units: PixelsPerCentimeter
verbose: true
Tainted: False
Filesize: 359B
Number pixels: 192
Pixels per second: 19200B
User time: 0.010u
Elapsed time: 0:01.010
Version: ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
-------------- next part --------------
Image: rgb.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: PseudoClass
Geometry: 16x12+0+0
Resolution: 300x300
Print size: 0.0533333x0.04
Units: PixelsPerInch
Colorspace: sRGB
Type: Palette
Base type: Undefined
Endianess: Undefined
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 192
Red:
min: 0 (0)
max: 255 (1)
mean: 138.167 (0.54183)
standard deviation: 121.923 (0.47813)
kurtosis: -1.89124
skewness: -0.166463
entropy: 0.835989
Green:
min: 0 (0)
max: 255 (1)
mean: 127.667 (0.500654)
standard deviation: 104.376 (0.409317)
kurtosis: -1.51558
skewness: -0.0047654
entropy: 1
Blue:
min: 0 (0)
max: 255 (1)
mean: 106.333 (0.416993)
standard deviation: 114.75 (0.449998)
kurtosis: -1.69198
skewness: 0.328147
entropy: 0.92062
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 124.056 (0.486492)
standard deviation: 113.683 (0.445815)
kurtosis: -1.75989
skewness: 0.0517601
entropy: 0.91887
Colors: 12
Histogram:
16: ( 0, 0, 0) #000000 black
16: ( 0, 0,255) #0000FF blue
16: ( 0,128, 0) #008000 green
16: ( 0,255, 0) #00FF00 lime
16: ( 0,255,255) #00FFFF cyan
16: (128,128,128) #808080 fractal
16: (255, 0, 0) #FF0000 red
16: (255, 0,255) #FF00FF magenta
16: (255,128, 0) #FF8000 srgb(255,128,0)
16: (255,128,128) #FF8080 srgb(255,128,128)
16: (255,255, 0) #FFFF00 yellow
16: (255,255,255) #FFFFFF white
Colormap entries: 13
Colormap:
0: (255, 0,255) #FF00FF magenta
1: ( 0, 0, 0) #000000 black
2: (255, 0, 0) #FF0000 red
3: ( 0,255, 0) #00FF00 lime
4: (255,255, 0) #FFFF00 yellow
5: ( 0,128, 0) #008000 green
6: ( 0, 0,255) #0000FF blue
7: (255,128,128) #FF8080 srgb(255,128,128)
8: ( 0,255,255) #00FFFF cyan
9: (255,128, 0) #FF8000 srgb(255,128,0)
10: (255,255,255) #FFFFFF white
11: (128,128,128) #808080 fractal
12: (255,255,255) #FFFFFF white
Rendering intent: Perceptual
Gamma: 0.45455
Chromaticity:
red primary: (0.63999,0.33001)
green primary: (0.3,0.6)
blue primary: (0.15,0.05999)
white point: (0.31269,0.32899)
Background color: srgb(255,255,255)
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 16x12+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Properties:
date:create: 2019-01-07T22:09:07+01:00
date:modify: 2019-01-07T22:09:07+01:00
png:bKGD: chunk was found (see Background color, above)
png:cHRM: chunk was found (see Chromaticity, above)
png:gAMA: gamma=0.45455 (See Gamma, above)
png:IHDR.bit-depth-orig: 4
png:IHDR.bit_depth: 4
png:IHDR.color-type-orig: 3
png:IHDR.color_type: 3 (Indexed)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height: 16, 12
png:pHYs: x_res=11811, y_res=11811, units=1
png:PLTE.number_colors: 13
png:sRGB: intent=0 (Perceptual Intent)
png:text: 2 tEXt/zTXt/iTXt chunks were found
png:tIME: 2019-01-07T23:08:56Z
signature: 0d23f0078b8f89ca473e67bb38773cb94fd8ec5591e4207e83ff95cb27a6a0dd
Artifacts:
filename: rgb.png
units: PixelsPerInch
verbose: true
Tainted: False
Filesize: 359B
Number pixels: 192
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.10-14 Q16 x86_64 20181023 https://imagemagick.org
-------------- next part --------------
Image: rgb.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: PseudoClass
Geometry: 16x12+0+0
Resolution: 118.11x118.11
Print size: 0.135467x0.1016
Units: PixelsPerCentimeter
Colorspace: sRGB
Type: Palette
Base type: Undefined
Endianess: Undefined
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 192
Red:
min: 0 (0)
max: 255 (1)
mean: 138.167 (0.54183)
standard deviation: 121.923 (0.47813)
kurtosis: -1.89124
skewness: -0.166463
entropy: 0.835989
Green:
min: 0 (0)
max: 255 (1)
mean: 127.667 (0.500654)
standard deviation: 104.376 (0.409317)
kurtosis: -1.51558
skewness: -0.0047654
entropy: 1
Blue:
min: 0 (0)
max: 255 (1)
mean: 106.333 (0.416993)
standard deviation: 114.75 (0.449998)
kurtosis: -1.69198
skewness: 0.328147
entropy: 0.92062
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 124.056 (0.486492)
standard deviation: 113.683 (0.445815)
kurtosis: -1.75989
skewness: 0.0517601
entropy: 0.91887
Colors: 12
Histogram:
16: ( 0, 0, 0) #000000 black
16: ( 0, 0,255) #0000FF blue
16: ( 0,128, 0) #008000 green
16: ( 0,255, 0) #00FF00 lime
16: ( 0,255,255) #00FFFF cyan
16: (128,128,128) #808080 fractal
16: (255, 0, 0) #FF0000 red
16: (255, 0,255) #FF00FF magenta
16: (255,128, 0) #FF8000 srgb(255,128,0)
16: (255,128,128) #FF8080 srgb(255,128,128)
16: (255,255, 0) #FFFF00 yellow
16: (255,255,255) #FFFFFF white
Colormap entries: 13
Colormap:
0: (255, 0,255) #FF00FF magenta
1: ( 0, 0, 0) #000000 black
2: (255, 0, 0) #FF0000 red
3: ( 0,255, 0) #00FF00 lime
4: (255,255, 0) #FFFF00 yellow
5: ( 0,128, 0) #008000 green
6: ( 0, 0,255) #0000FF blue
7: (255,128,128) #FF8080 srgb(255,128,128)
8: ( 0,255,255) #00FFFF cyan
9: (255,128, 0) #FF8000 srgb(255,128,0)
10: (255,255,255) #FFFFFF white
11: (128,128,128) #808080 fractal
12: (255,255,255) #FFFFFF white
Rendering intent: Perceptual
Gamma: 0.45455
Chromaticity:
red primary: (0.63999,0.33001)
green primary: (0.3,0.6)
blue primary: (0.15,0.05999)
white point: (0.31269,0.32899)
Background color: srgb(255,255,255)
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 16x12+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Properties:
date:create: 2019-01-07T22:09:07+01:00
date:modify: 2019-01-07T22:09:07+01:00
png:bKGD: chunk was found (see Background color, above)
png:cHRM: chunk was found (see Chromaticity, above)
png:gAMA: gamma=0.45455 (See Gamma, above)
png:IHDR.bit-depth-orig: 4
png:IHDR.bit_depth: 4
png:IHDR.color-type-orig: 3
png:IHDR.color_type: 3 (Indexed)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height: 16, 12
png:pHYs: x_res=11811, y_res=11811, units=1
png:PLTE.number_colors: 13
png:sRGB: intent=0 (Perceptual Intent)
png:text: 2 tEXt/zTXt/iTXt chunks were found
png:tIME: 2019-01-07T23:08:56Z
signature: 0d23f0078b8f89ca473e67bb38773cb94fd8ec5591e4207e83ff95cb27a6a0dd
Artifacts:
filename: rgb.png
units: PixelsPerCentimeter
verbose: true
Tainted: False
Filesize: 359B
Number pixels: 192
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
-------------- next part --------------
Image: rgb.png
Format: PNG (Portable Network Graphics)
Mime type: image/png
Class: PseudoClass
Geometry: 16x12+0+0
Resolution: 118.11x118.11
Print size: 0.135467x0.1016
Units: PixelsPerInch
Colorspace: sRGB
Type: Palette
Base type: Undefined
Endianess: Undefined
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 192
Red:
min: 0 (0)
max: 255 (1)
mean: 138.167 (0.54183)
standard deviation: 121.923 (0.47813)
kurtosis: -1.89124
skewness: -0.166463
entropy: 0.835989
Green:
min: 0 (0)
max: 255 (1)
mean: 127.667 (0.500654)
standard deviation: 104.376 (0.409317)
kurtosis: -1.51558
skewness: -0.0047654
entropy: 1
Blue:
min: 0 (0)
max: 255 (1)
mean: 106.333 (0.416993)
standard deviation: 114.75 (0.449998)
kurtosis: -1.69198
skewness: 0.328147
entropy: 0.92062
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 124.056 (0.486492)
standard deviation: 113.683 (0.445815)
kurtosis: -1.75989
skewness: 0.0517601
entropy: 0.91887
Colors: 12
Histogram:
16: ( 0, 0, 0) #000000 black
16: ( 0, 0,255) #0000FF blue
16: ( 0,128, 0) #008000 green
16: ( 0,255, 0) #00FF00 lime
16: ( 0,255,255) #00FFFF cyan
16: (128,128,128) #808080 fractal
16: (255, 0, 0) #FF0000 red
16: (255, 0,255) #FF00FF magenta
16: (255,128, 0) #FF8000 srgb(255,128,0)
16: (255,128,128) #FF8080 srgb(255,128,128)
16: (255,255, 0) #FFFF00 yellow
16: (255,255,255) #FFFFFF white
Colormap entries: 13
Colormap:
0: (255, 0,255) #FF00FF magenta
1: ( 0, 0, 0) #000000 black
2: (255, 0, 0) #FF0000 red
3: ( 0,255, 0) #00FF00 lime
4: (255,255, 0) #FFFF00 yellow
5: ( 0,128, 0) #008000 green
6: ( 0, 0,255) #0000FF blue
7: (255,128,128) #FF8080 srgb(255,128,128)
8: ( 0,255,255) #00FFFF cyan
9: (255,128, 0) #FF8000 srgb(255,128,0)
10: (255,255,255) #FFFFFF white
11: (128,128,128) #808080 fractal
12: (255,255,255) #FFFFFF white
Rendering intent: Perceptual
Gamma: 0.45455
Chromaticity:
red primary: (0.63999,0.33001)
green primary: (0.3,0.6)
blue primary: (0.15,0.05999)
white point: (0.31269,0.32899)
Background color: srgb(255,255,255)
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 16x12+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Properties:
date:create: 2019-01-07T22:09:07+01:00
date:modify: 2019-01-07T22:09:07+01:00
png:bKGD: chunk was found (see Background color, above)
png:cHRM: chunk was found (see Chromaticity, above)
png:gAMA: gamma=0.45455 (See Gamma, above)
png:IHDR.bit-depth-orig: 4
png:IHDR.bit_depth: 4
png:IHDR.color-type-orig: 3
png:IHDR.color_type: 3 (Indexed)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height: 16, 12
png:pHYs: x_res=11811, y_res=11811, units=1
png:PLTE.number_colors: 13
png:sRGB: intent=0 (Perceptual Intent)
png:text: 2 tEXt/zTXt/iTXt chunks were found
png:tIME: 2019-01-07T23:08:56Z
signature: 0d23f0078b8f89ca473e67bb38773cb94fd8ec5591e4207e83ff95cb27a6a0dd
Artifacts:
filename: rgb.png
units: PixelsPerInch
verbose: true
Tainted: False
Filesize: 359B
Number pixels: 192
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rgb.png
Type: image/png
Size: 359 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gmagick-im-team/attachments/20190107/7491150c/attachment-0001.png>
More information about the Pkg-gmagick-im-team
mailing list