Page 1 of 1

conversion on IM7.0.8-8 worked, not in 7.0.8-12

Posted: 2018-10-02T05:44:42-07:00
by willemijns2
Hello,

begin.png is the image base
"middles file" have same size, no image differences but not the same MD5
end7.0.8-8.png is good and end7.0.8-12.png is bad

a bug on eventual updated libpng ???

Code: Select all

del middle*.*
del end*.*

set vers=7.0.8-8
d:\cle-usb\ImageMagick-%vers%-portable-Q16-x64\convert -units PixelsPerInch -density 300 -quality 100 +repage -scene 1 begin.png -transparent white middle%vers%.png
d:\cle-usb\ImageMagick-%vers%-portable-Q16-x64\convert -units PixelsPerInch -density 300 -quality 100 -crop 2850x79+35+47 +repage middle%vers%.png end%vers%.png

rem Now let's cut and paste above to below and only modifying the version number

set vers=7.0.8-12
d:\cle-usb\ImageMagick-%vers%-portable-Q16-x64\convert -units PixelsPerInch -density 300 -quality 100 +repage -scene 1 begin.png -transparent white middle%vers%.png
d:\cle-usb\ImageMagick-%vers%-portable-Q16-x64\convert -units PixelsPerInch -density 300 -quality 100 -crop 2850x79+35+47 +repage middle%vers%.png end%vers%.png

rem "middles file" have same size but not the same MD5
rem end7.0.8-8.png is good and end7.0.8-12.png is bad
pause
https://drive.google.com/open?id=13dPuT ... cxp-WgN7h8

Re: conversion on IM7.0.8-8 worked, not in 7.0.8-12

Posted: 2018-10-02T06:10:45-07:00
by willemijns2
googledrive link on my first message shows the directory and all images...

Re: conversion on IM7.0.8-8 worked, not in 7.0.8-12

Posted: 2018-10-02T06:22:50-07:00
by snibgo
Your command syntax is bad. Command operations should be in the order you want them executed. For example, read the image before cropping it, not after.

For v7, I suggest you use "magick" not "convert" or "magick convert".

Re: conversion on IM7.0.8-8 worked, not in 7.0.8-12

Posted: 2018-10-02T07:24:10-07:00
by willemijns2
Hello, where you find error ? i moved repage and deleted -scene 1... nothing happends.

Re: conversion on IM7.0.8-8 worked, not in 7.0.8-12

Posted: 2018-10-02T07:44:37-07:00
by snibgo
d:\cle-usb\ImageMagick-%vers%-portable-Q16-x64\convert -units PixelsPerInch -density 300 -quality 100 -crop 2850x79+35+47 +repage middle%vers%.png end%vers%.png
You command crops, and then reads the image. That is wrong. You should read the image first, and then crop, and change the density.

Re: conversion on IM7.0.8-8 worked, not in 7.0.8-12

Posted: 2018-10-02T07:50:05-07:00
by willemijns2
same thing.

Re: conversion on IM7.0.8-8 worked, not in 7.0.8-12

Posted: 2018-10-21T12:03:25-07:00
by magick
Add -strip to your command-line, just before your output image. You should now get the same checksum.

Re: conversion on IM7.0.8-8 worked, not in 7.0.8-12

Posted: 2018-10-22T12:36:18-07:00
by willemijns2
You right but same kind of bug occurs for others samples:

https://github.com/ImageMagick/ImageMagick/issues/1362