About 3,120,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

    Traceback (most recent call last): File "<console>", line 1, in <module> ImportError: No module named PIL I've never had such problem, what do you think?

  3. 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 …

  4. python - How to crop an image using PIL? - Stack Overflow

    May 22, 2019 · I want to crop image in the way by removing first 30 rows and last 30 rows from the given image. I have searched but did not get the exact solution. Does somebody have some …

  5. python - How do I resize an image using PIL and maintain its aspect ...

    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.

  6. python - PIL how to scale text size in relation to the size of the ...

    Feb 4, 2011 · I'm using Python Imaging Library version 1.1.7. on Linux. I would like to be able to set the ratio of the text size to the image dimensions, say like 1/10 the size or something. I have been …

  7. How to reduce the image file size using PIL - Stack Overflow

    Jun 14, 2022 · 143 I am using PIL to resize the images there by converting larger images to smaller ones. Are there any standard ways to reduce the file size of the image without losing the quality too …

  8. python - 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?

  9. Python 3, is PIL an alias for Pillow? - Stack Overflow

    Python 3.5 on Windows 7 64-bit. I'm confused -- IF one installs Pillow, THEN must one use the name of the superseded / uninstalled graphics library PIL as an alias for it? Per the Pillow intallat...

  10. python - How can I save an image with PIL? - Stack Overflow

    Jan 22, 2013 · I have just done some image processing using the Python image library (PIL) using a post I found earlier to perform fourier transforms of images and I can't get the save function to work. …