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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

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

Post 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
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

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

Post by willemijns2 »

googledrive link on my first message shows the directory and all images...
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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".
snibgo's IM pages: im.snibgo.com
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

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

Post by willemijns2 »

Hello, where you find error ? i moved repage and deleted -scene 1... nothing happends.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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.
snibgo's IM pages: im.snibgo.com
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

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

Post by willemijns2 »

same thing.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

Add -strip to your command-line, just before your output image. You should now get the same checksum.
willemijns2
Posts: 15
Joined: 2018-10-02T05:10:24-07:00
Authentication code: 1152

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

Post by willemijns2 »

You right but same kind of bug occurs for others samples:

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