you mean something like
    im.encoderinfo["transparency"][:2**bits]
?
How would that work with a real image?