About 23,200,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 everything …

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

    from PIL import Image "Pillow is a fork of PIL, the Python Imaging Library, which is no longer maintained. However, to maintain backwards compatibility, the old module name is used." From …

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

    Jan 20, 2016 · 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 MSPaint …

  4. How do I resize an image using PIL and maintain its aspect ratio?

    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 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 image …

  6. python - Getting list of pixel values from PIL - Stack Overflow

    Problem seems to be the conversion to a standard python list. If I call just pixels=im.getdata() (which returns a special, simplified, list type) everything is fine. If I add the cast, however, python starts …

  7. How to show PIL Image in ipython notebook - Stack Overflow

    Aug 20, 2015 · display(pil_im) Jupyter will also show the image if it is simply the last line in a cell (this has changed since the original post). Thanks to answers from @Dean and @Prabhat for pointing …

  8. Why can't Python import Image from PIL? - Stack Overflow

    Oct 22, 2014 · from PIL import Image However simple this may seem, it gives an error:

  9. How do I get the picture size with PIL? - Stack Overflow

    Jun 22, 2011 · How do I get a size of a pictures sides with PIL or any other Python library?

  10. How do I open an image from the internet in PIL? - Stack Overflow

    However, the PIL.open function explicitly requires it. open Image.open (infile) => image Image.open (infile, mode) => image Opens and identifies the given image file. This is a lazy operation; the actual …