Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a better alternative to PIL for basic image file I/O and processing in Python? [closed]

Are there better alternatives to PIL (Python Imaging Library) for basic image file I/O and processing in Python?

like image 438
VogonPoet Avatar asked Apr 03 '09 18:04

VogonPoet


People also ask

Which is better PIL or OpenCV?

OpenCV is written in C and C++ whereas PIL is written using Python and C, hence just from this information, OpenCV seems faster. While dealing with 1000s of images for data extraction, the processing speed 🚀 matters.

Which is better PIL or Pillow?

Pillow was announced as a replacement for PIL for future usage. Pillow supports a large number of image file formats including BMP, PNG, JPEG, and TIFF. The library encourages adding support for newer formats in the library by creating new file decoders.

Which is faster cv2 or PIL?

Most of cases, cv2 method is faster than pil one.

What is a PIL image Python?

PIL is the Python Imaging Library which provides the python interpreter with image editing capabilities. The Image module provides a class with the same name which is used to represent a PIL image.


1 Answers

Try Pillow: http://pypi.python.org/pypi/Pillow

It's a fork of PIL but maintained by Plone community. Which is great as it is being maintained (in comparison to it's predecessor) and it is backward compatible with PIL. Existing code will work out of the box with Pillow.

They mostly focus on packaging issues and AFAIK this was the biggest pain with PIL.

Good luck!

like image 123
Munhitsu Avatar answered Oct 19 '22 20:10

Munhitsu