I'm trying to check an image is transparent or not using PIL.
image = Image.open(file).convert('RGBA')
alpha = image.split()[-1]
This gives a value like this
<PIL.Image.Image image mode=L size=714x303 at 0x25EB0EBC040>
How to convert this to a transparency value? Or is this a right way to find the transparency of an image by converting it to RGBA?