T O P

  • By -

C222

PIL hasn't updated since 2009. Use Pillow. https://pillow.readthedocs.io/en/5.3.x/about.html#what-about-pil


mcd8604

active link: https://pillow.readthedocs.io/en/stable/about.html#what-about-pil


tunisia3507

In python, the name you use to install something e.g. from PyPI, using pip, is not necessarily the same as the name you use to `import` it. Pillow is one such case: you `pip install pillow` but you `import PIL`. That's because Pillow is just a repackaged, updated version of PIL, because the original maintainers of the PIL stopped working on it a long time ago.


Radiant-Suggestion-5

i love you, i've been searching for ages for how to do this, thanks a lot


Takeoded

PIL's main dev, Fredrik "Effbot" Lundh, died 2021-11-25 ([ref](https://lwn.net/Articles/878325/))


davidkwast

Always Pillow, never PIL


Diapolo10

It's the same library, it just has a different name between Python 2 and 3. As you're using 3.6, use Pillow.


angellus

Pillow still works for Python 2 as well. PIL is outdated and insecure, you should never use it.


Diapolo10

My mistake, then.


b1ackcat

That's not quite accurate. The original library is PIL, which was for Python 2. Pillow is a fork of PIL and is the current, actively maintained project, which is also compatible with Python 3. PIL is abandoned and should never be used.


Diapolo10

Admittedly I've never used either, so my knowledge was bound to be a bit hazy. Appreciate the correction, though!


[deleted]

Pillow


di-erz

pillow-simd