-depth option in rel 7.0.9-16 works differently (I think in a wrong way) from rel 7.0.8-34

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.
Locked
vinxxe
Posts: 1
Joined: 2020-01-16T07:20:43-07:00
Authentication code: 1152

-depth option in rel 7.0.9-16 works differently (I think in a wrong way) from rel 7.0.8-34

Post by vinxxe »

Hi,
I use the following command to obtain a RGB555 tga starting from a RGB888 png:

magick src.png -depth 5 dst.tga

With the version 7.0.8-34 Q8 everything is ok. I downloaded the release 7.0.9-16 Q8 today and the result changed from the previous release in this way: the conversion tool select the 5 most significant bits of each color component but then subtract 1 to the result. So 0x08 became 0x01 with the old release while become 0x00 with the new one, 0xb3 became 0x16 with the old release while become 0x15 with the new one and so on.
Is this the expected behaviour or this can be considered a bug?
I use the statically linked version of image magick and my operating system is Windows 10 updated to the last available update.
thank you for your help.

Locked