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 update the image of a Tkinter Label widget?

I would like to be able to swap out an image on a Tkinter label, but I'm not sure how …

python python-2.7 tkinter python-imaging-library
How can I install PIL on mac os x 10.7.2 Lion

I've tried googling & looking up some other people's questions. However, I still couldn't find a clear/simple recipe to …

python macos python-imaging-library
Convert PIL Image to byte array?

I have an image in PIL Image format. I need to convert it to byte array. img = Image.open(fh, …

python image bytearray python-imaging-library
Convert RGB to black OR white

How would I take an RGB image in Python and convert it to black OR white? Not grayscale, I want …

python opencv numpy python-imaging-library
How to adjust the quality of a resized image in Python Imaging Library?

I am working on PIL and need to know if the image quality can be adjusted while resizing or thumbnailing …

python python-imaging-library
Multiplying a tuple by a scalar

I have the following code: print(img.size) print(10 * img.size) This will print: (70, 70) (70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70) I'd like it to print: (700, 700) Is …

python python-imaging-library
Python / Pillow: How to scale an image

Suppose I have an image which is 2322px x 4128px. How do I scale it so that both the width …

python python-imaging-library image-scaling pillow
PIL: DLL load failed: specified procedure could not be found

I've been beginning to work with images in Python and I wanted to start using PIL (Pillow). To install it, …

python python-imaging-library pillow
ImportError: cannot import name _imaging

I installed Pillow, and after I want to do: from PIL import Image I get the following error: Traceback (most …

python pip python-imaging-library imaging
PIL: Convert Bytearray to Image

I am trying to verify a bytearray with Image.open and Image.verify() without writing it to disk first and …

python arrays image byte python-imaging-library