I would agree, but that is something different from %A and %[channels] or would require those to change.I still think the usefulness of knowing whether there is actual transparency
present outweighs the usefulness of knowing whether the image was once
encoded in a format that supports transpararency, but that's just me.
It would be nice to have a means of knowing via IM if there was real transparency in PNG, GIF, TIFF or any format that supports transparency; other than looking at every pixel or histogram.
Sorry I don't understand the tRNS chunk issue? Will %A return the same value for PNG8 with a transparent color as for GIF with a transparent color? Or if -alpha set is enabled on an opaque PNG8 or GIF image -- presumably from what Anthony said, the latter will report False for GIF.The PNG encoder is going to write RGBA or GA if you request it with PNG32 or
with -define PNG:color-type=4 (or 6), but there isn't a way to force it to write a
tRNS chunk when there is no transparent pixel in the image, so in this case
if you write a PNG with tRNS and read it back, the %A will change from true
to false because the tRNS chunk doesn't get copied.
However, I was originally more concerned that 32-bit or grayA in any compatible image format -- that they all behave consistently with regard to %A and %[channels].