Top "Pillow" questions

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

How do I close an image opened in Pillow?

I have a python file with the Pillow library imported. I can open an image with Image.open(test.png) …

python python-imaging-library pillow
How do you merge images into a canvas using PIL/Pillow?

I'm not familiar with PIL, but I know it's very easy to put a bunch of images into a grid …

python image canvas python-imaging-library pillow
"The headers or library files could not be found for jpeg" installing Pillow on Alpine Linux

I'm trying to run Python's Scrapy in a Docker container based on python:alpine. It was working before, but now …

python docker dockerfile pillow alpine
Getting "cannot write mode P as JPEG" while operating on JPG image

I am trying to resize some images, most of which are JPG. But in a few images, I am getting …

python macos python-imaging-library pillow
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
cannot write mode RGBA as JPEG

I am learning to use 'pillow 5.0' following book 'Automate the boring stuff with python' The info about the image …

python-3.6 pillow
Using Pillow with Python 3

I'm not having much luck using Pillow with Python 3.3.2 and I'd be grateful for some help. My problem is that …

python-3.3 pillow
Error installing Pillow on ubuntu 14.04

I'm trying to install Pillow on Ubuntu 14.04 using this command: pip install Pillow but the installation fails with this error: …

python pip ubuntu-14.04 pillow
What is the difference between Image.resize and Image.thumbnail in Pillow-Python

I want to resize an image in pillow-python, however I have 2 functions of choice to use: Image.resize http://pillow.…

python python-imaging-library pillow
How to detect edge and crop an image in Python

I'm new to Image Processing in Python and I'm trying to solve a common problem. I have an image having …

python opencv image-processing pillow canny-operator