[Pkg-gmagick-im-team] Bug#918642: imagemagick: identify 6.9.10-23 doesn't convert units (pixels per cm/in)

Bastien ROUCARIES roucaries.bastien+imagemagick at gmail.com
Mon Jan 7 22:58:44 GMT 2019


control: fowarded -1 https://github.com/ImageMagick/ImageMagick/issues/1442

Thanks

On Mon, Jan 7, 2019 at 10:57 PM Cédric Boutillier <boutil at debian.org> wrote:
>
> 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



More information about the Pkg-gmagick-im-team mailing list