Top "Python-imaging-library" questions

The Python Imaging Library (PIL) provides the Python language with a de-facto standard foundation for image work.

How to get the format of image with PIL?

After loading an image file with PIL.Image, how can I determine whether the image file is a PNG/JPG/…

python python-imaging-library image-formats
How to get alpha value of a PNG image with PIL?

How to detect if a PNG image has transparent alpha channel or not using PIL? img = Image.open('example.png', …

python image png python-imaging-library transparent
Python PIL - Draw Circle

I am trying to draw a simple circle and save this to a file using the Python Imaging Library: import …

python python-imaging-library imaging
Decoding base64 from POST to use in PIL

I'm making a simple API in Flask that accepts an image encoded in base64, then decodes it for further processing …

python flask base64 python-imaging-library pillow
Get date and time when photo was taken from EXIF data using PIL

I can get the EXIF data from an image using PIL, but how can I get the date and time …

python python-imaging-library exif
Installing PIL with JPEG support on Mac OS X

I posted a question before regarding this subject, and read other ones posted before, but none has successfully solved my …

python django python-imaging-library libjpeg
How can I create an empty n*m PNG file in Python?

I would like to combine 4 PNG images to one PNG file. I know who to combine them with Image.paste …

python png python-imaging-library
Python, PIL; Text to Image and fonts

I have an issue with writing text to an image under Python and PIL - I'm able to write text …

python image text python-imaging-library bold
Python PIL: How to draw an ellipse in the middle of an image?

I seem to be having some trouble getting this code to work: import Image, ImageDraw im = Image.open("1.jpg") draw = …

python python-imaging-library ellipse
How to get image size (bytes) using PIL

I found out how to use PIL to get the image dimensions, but not the file size in bytes. I …

python python-imaging-library tornado filesize