Page 1 of 1

possible bug IM 7.0.8.46 -alpha deactivate/activate

Posted: 2019-05-23T07:48:16-07:00
by fmw42
From the porting guide:
-alpha activate/deactivate
enables and disables the alpha channel, respectively, with persistence. This is like on/off in Imagemagick 6. In Imagemagick 7, -alpha off will remove the alpha channel permanently such that -alpha on will not re-enable it.
But that does not work in IM 7.

Input:
Image

IM 7.0.8.46

Code: Select all

magick text.png -alpha deactivate -blur 0x6 -shade 135x5 -alpha activate -normalize +level 30% shaded7.png
Image


IM 6.9.10.46

Code: Select all

convert text.png -alpha off -blur 0x6 -shade 135x5 -alpha on -normalize +level 30% shaded6.png
Image

Re: possible bug IM 7.0.8.46 -alpha deactivate/activate

Posted: 2019-05-23T18:22:38-07:00
by magick
Grab the latest beta (building now). This command works for both IMv6 and IMv7:

Code: Select all

convert text.png -alpha deactivate -blur 0x6 -shade 135x5 -normalize +level 30% -alpha activate shaded7.png
There is a slight difference in shading. You can change the intensity to Rec609 and the results should match.

Re: possible bug IM 7.0.8.46 -alpha deactivate/activate

Posted: 2019-05-24T17:06:44-07:00
by fmw42
In IM 7.0.8.47 beta Q16 Mac OSX, this command produce no bevel from the -shade as it should in comparison to the IM 6 result above.

Code: Select all

magick text.png -alpha deactivate -blur 0x6 -shade 135x5 -normalize +level 30% -alpha activate shaded7a.png
Image

So there is still an issue.



Understood about the colorspace. IM 6 uses Rec601luma and IM 7 use Rec709luma. So you meant to say use -intensity Rec601luma to make IM 7 reproduce IM 6 results.

Re: possible bug IM 7.0.8.46 -alpha deactivate/activate

Posted: 2019-05-25T13:23:18-07:00
by magick
Try now. We built a new Beta release.

Re: possible bug IM 7.0.8.46 -alpha deactivate/activate

Posted: 2019-05-25T14:34:53-07:00
by fmw42
Yes. It seems to work fine now in the 7.0.8.47 beta. Thanks