# create fully transparent image
Code: Select all
convert -size 100x100 xc:none x.png
# expected result
Code: Select all
convert x.png -channel a -format "%[fx:mean]" info:
# unexpected result
Code: Select all
convert x.png -channel a -format "%[mean]" info:
# similarly, unexpected result
Code: Select all
convert x.png -format "%[fx:mean.a]" info:
# same if use .o rather than .a
Code: Select all
convert x.png -format "%[fx:mean.o]" info:
With IM 7.0.8.51, the following gives proper results:
Code: Select all
magick x.png -channel a -format "%[fx:mean]" info:
Code: Select all
magick x.png -channel a -format "%[mean]" info:
Code: Select all
magick x.png -format "%[fx:mean.a]" info:
Code: Select all
magick x.png -format "%[fx:mean.o]" info: