I may be wrong, but I thought that in IM 7 the equivalent of -alpha off and -alpha on was supposed to be -alpha deactivate and -alpha activate. The -alpha off permanently removes the alpha channel so that -alpha on will not return it.
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.
So the following should work.
Code: Select all
magick text.png -alpha deactivate -blur 0x6 -shade 135x5 -alpha activate -normalize +level 30% shaded.png
But it does not and gives a weird result. I think this might be a bug.