def has_transparency(self):
    has_transparency = (('A' in self.image.mode) or ('transparency' in self.image.info))
    if has_transparency:
        has_transparency = (min(self.image.convert('RGBA').getchannel('A').getextrema()) < 255)
    return has_transparency
def has_transparency(self):
    has_transparency = (('A' in self.image.mode) or ('transparency' in self.image.info))
    if has_transparency:
        has_transparency = (min(self.image.convert('RGBA').getchannel('A').getextrema()) < 255)
    return has_transparency