PSNR no longer returns inf
Posted: 2017-02-26T19:16:19-07:00
The result of a 'compare -metric PSNR' for identical images has changed between
6.9.3 and 6.9.5 (I dont have a 6.9.4 to test). This problem is also in the
7 series. Instead of the result being 'inf' it has now become '0'. Is this a bug or done on purpose???
> compare --version
Version: ImageMagick 6.9.3-4 Q16 amd64 2016-03-15 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib cairo fftw fontconfig freetype fpx jbig jng jp2 jpeg lcms lqr ltdl png rsvg tiff webp wmf x xml zlib
> convert -size 100x100 xc:white canvaswhite.jpg
> compare -metric PSNR canvaswhite.jpg canvaswhite.jpg /dev/null
inf
-----
> compare --version
Version: ImageMagick 6.9.5-10 Q16 amd64 2016-11-01 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib cairo fftw fontconfig fpx freetype jbig jng jp2 jpeg lcms lqr ltdl lzma png rsvg tiff webp wmf x xml zlib
> convert -size 100x100 xc:white canvaswhite.jpg
> compare -metric PSNR canvaswhite.jpg canvaswhite.jpg /dev/null
0
-----
> compare --version
Version: ImageMagick 7.0.2-9 Q16 amd64 2017-02-26 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib cairo fftw fontconfig fpx freetype jbig jng jp2 jpeg lcms lqr ltdl lzma png rsvg tiff webp wmf x xml zlib
> convert -size 100x100 xc:white canvaswhite.jpg
> compare -metric PSNR canvaswhite.jpg canvaswhite.jpg /dev/null
0
6.9.3 and 6.9.5 (I dont have a 6.9.4 to test). This problem is also in the
7 series. Instead of the result being 'inf' it has now become '0'. Is this a bug or done on purpose???
> compare --version
Version: ImageMagick 6.9.3-4 Q16 amd64 2016-03-15 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib cairo fftw fontconfig freetype fpx jbig jng jp2 jpeg lcms lqr ltdl png rsvg tiff webp wmf x xml zlib
> convert -size 100x100 xc:white canvaswhite.jpg
> compare -metric PSNR canvaswhite.jpg canvaswhite.jpg /dev/null
inf
-----
> compare --version
Version: ImageMagick 6.9.5-10 Q16 amd64 2016-11-01 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib cairo fftw fontconfig fpx freetype jbig jng jp2 jpeg lcms lqr ltdl lzma png rsvg tiff webp wmf x xml zlib
> convert -size 100x100 xc:white canvaswhite.jpg
> compare -metric PSNR canvaswhite.jpg canvaswhite.jpg /dev/null
0
-----
> compare --version
Version: ImageMagick 7.0.2-9 Q16 amd64 2017-02-26 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules
Delegates (built-in): bzlib cairo fftw fontconfig fpx freetype jbig jng jp2 jpeg lcms lqr ltdl lzma png rsvg tiff webp wmf x xml zlib
> convert -size 100x100 xc:white canvaswhite.jpg
> compare -metric PSNR canvaswhite.jpg canvaswhite.jpg /dev/null
0