Code: Select all
convert -size 20x80 gradient:gray30-grey70 -bordercolor none -border 10x10 autolevel_gradient.png
But if you autolevel that image...
Code: Select all
convert autolevel_gradient.png -auto-level autolevel_failure.png
The sudden appearance of 'black' instead of transparency in the above IS a bug! the default -channel setting should be preventing any change to the alpha channel values.
Replacing the PNG output with 'show:' shows a correct image on screen, so alpha channel is actually correct,
So it looks like the bug is in the PNG coder.