About 5,500,000 results
Open links in new tab
  1. python - how to install PIL with pip? - Stack Overflow

    Jul 19, 2021 · Traceback (most recent call last): File "image_viewer.py", line 2, in <module> from PIL import ImageTk, Image ImportError: No module named PIL but I already install Pillow and …

  2. python - ImportError: No module named PIL - Stack Overflow

    So I installed the python-mlt module from Yast and imported it, tried to start but next openshot said missing pil. I Followed the Pillow suggestion to install because Yast couldn't find any pil …

  3. Importing the PIL (Pillow) module in Python - Stack Overflow

    Oct 6, 2018 · import PIL Is really the same as saying " import the __init__.py file in the PIL directory ". In this specific case, that __init__.py file does not import or otherwise make …

  4. python - How do I resize an image using PIL and maintain its …

    The Python 3 documentation for PIL says that thumbnail only works if the resulting image is smaller than the original one. Because of that I would guess that using resize is the better way.

  5. python - How to show PIL images on the screen? - Stack Overflow

    Sep 24, 2012 · PIL's built-in show() method is the simplest possible version of the "script some other program to show it". (On earlier Windows systems you'd end up with a whole bunch of …

  6. python - How to read a raw image using PIL? - Stack Overflow

    Image.frombuffer (mode, size, data) => image (New in PIL 1.1.4). Creates an image memory from pixel data in a string or buffer object, using the standard "raw" decoder. For some modes, the …

  7. python - Get Image size WITHOUT loading image into memory

    from PIL import Image im = Image.open(image_filename) width, height = im.size However, I would like to get the image width and height without having to load the image in memory. Is …

  8. python - No Module named PIL - Stack Overflow

    Jul 1, 2016 · I know PIL is deprecated, so I installed Pillow instead, and for backward compatibility reason, Pillow is still using PIL as its module name. Here's my pip freeze look like for Pillow: …

  9. python - No module named 'PIL' - Stack Overflow

    Mar 13, 2018 · The python program ran in a virtual environment, but I called pip install Pillow from a normal command prompt. When I ran the program in a non-virtual environment, from PIL …

  10. python - How to use PIL to make all white pixels transparent?

    Dec 17, 2019 · I'm trying to make all white pixels transparent using the Python Image Library. (I'm a C hacker trying to learn python so be gentle) I've got the conversion working (at least the …