Returns a converted copy of an image
Parameters: |
|
---|---|
Returns: | the converted image |
Return type: | PIL image object |
Converts image into a processing-safe mode.
Parameter: | image (PIL image object) – input image |
---|---|
Returns: | the converted image |
Return type: | PIL image object |
Gets the image alpha band. Can handles P mode images with transpareny. Returns a band with all values set to 255 if no alpha band exists.
Parameter: | image (PIL image object) – input image |
---|---|
Returns: | alpha as a band |
Return type: | single band image object |
Checks if the image has an alpha band. i.e. the image mode is either RGBA or LA. The transparency in the P mode doesn’t count as an alpha band
Parameter: | image (PIL image object) – the image to check |
---|---|
Returns: | True or False |
Return type: | boolean |
Checks if the image has transparency. The image has an alpha band or a P mode with transparency.
Parameter: | image (PIL image object) – the image to check |
---|---|
Returns: | True or False |
Return type: | boolean |
Copies the given band to the alpha layer of the given image.
Parameters: |
|
---|
Returns a copy of the image after removing the alpha band or transparency
Parameter: | image (PIL image object) – input image |
---|---|
Returns: | the input image after removing the alpha band or transparency |
Return type: | PIL image object |