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

    Jul 19, 2021 · pip install pillow Also, as suggested in the comments, maybe you are just using the wrong python binary, try to check if you're in/out of a virtual environment or check differences …

  2. How can I convert an RGB image into grayscale in Python?

    Aug 30, 2012 · I'm trying to use matplotlib to read in an RGB image and convert it to grayscale. In matlab I use this: img = rgb2gray(imread('image.png')); In the matplotlib tutorial they don't …

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

    "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."

  4. Lower the brightness of an Image using Pillow - Stack Overflow

    Jul 12, 2015 · See question Algorithm to modify brightness for RGB image? The answer suggesting the multiplication of each of the image's R,G,B values by some constant would be …

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

    Jun 22, 2011 · This is probably the most important reason to use Pillow instead of something self-written. And you should use Pillow instead of PIL (python-imaging), because it works with …

  6. How to fix "pip installation error on pillow" - Stack Overflow

    Jun 30, 2019 · 58 Pillow 6.2.0 now supports Python 3.8 and has prebuilt wheels available. Make sure you're using Python 3.8.0 final or later with pip 19.2 or later. To upgrade:

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

    381 Updated 2021/11/17 When using PIL/Pillow, Jupyter Notebooks now have a display built-in that will show the image directly, with no extra fuss.

  8. AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

    Jul 4, 2023 · The ANTIALIAS constant was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or …

  9. PIL not working on Python 3.12, even though it's installed, and up …

    Jan 17, 2024 · As an alternative to invoking pip3 via its command wrapper, you can invoke pip as a module within the specific interpreter you want it to install a package for; that way it doesn't …

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

    Jun 14, 2022 · 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 …