asImage
-
emlib.img.asImage(obj)[source]
Returns obj if already a pillow Image or reads it from disk if given a path
- Parameters:
obj (Union
[str
, Image
]) – a pilllow Image or a path to an image file
- Return type:
Image
- Returns:
a pillow Image
Styled using the Piccolo Theme