removeTransparency

emlib.img.removeTransparency(im, background=(255, 255, 255))[source]

Remove transparency (alpha channel) from a PIL image

Parameters:
  • im (Image) – a PIL image (read via PIL.Image.open)

  • background – the color to use as background

Return type:

Image

Returns: