Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

python-imaging-library

cannot identify image file %r” % (filename if filename else fp)

August 22, 2022 by Magenaut

I am trying to download an image using PIL but its shows an UnidentifiedImageError

Categories Python, Q&A Tags bytesio, python, python-imaging-library, stringio Leave a comment

Remove everything of a specific color (with a color variation tolerance) from an image with Python

August 22, 2022 by Magenaut

I have some text in blue #00a2e8, and some text in black on a PNG image (white background).

Categories Python, Q&A Tags colors, image-processing, opencv, python, python-imaging-library Leave a comment

What is the difference between images in ‘P’ and ‘L’ mode in PIL?

August 21, 2022 by Magenaut

According to https://pillow.readthedocs.io/en/3.1.x/handbook/concepts.html#concept-modes,

Categories Python, Q&A Tags python, python-imaging-library Leave a comment

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

August 21, 2022 by Magenaut

Is there an obvious way to do this that I’m missing? I’m just trying to make thumbnails.

Categories Python, Q&A Tags image, python, python-imaging-library, thumbnails Leave a comment

How do I read image data from a URL in Python?

August 21, 2022 by Magenaut

What I’m trying to do is fairly simple when we’re dealing with a local file, but the problem comes when I try to do this with a remote URL.

Categories Python, Q&A Tags python, python-imaging-library Leave a comment

How to convert a PIL Image into a numpy array?

August 20, 2022 by Magenaut

Alright, I’m toying around with converting a PIL image object back and forth to a numpy array so I can do some faster pixel by pixel transformations than PIL’s PixelAccess object would allow. I’ve figured out how to place the pixel information in a useful 3D numpy array by way of:

Categories Python, Q&A Tags image, numpy, numpy-ndarray, python, python-imaging-library Leave a comment

In Python, how do I read the exif data for an image?

August 20, 2022 by Magenaut

I’m using PIL. How do I turn the EXIF data of a picture into a dictionary?

Categories Python, Q&A Tags exif, image, python, python-imaging-library Leave a comment

Combine several images horizontally with Python

August 20, 2022 by Magenaut

I am trying to horizontally combine some JPEG images in Python.

Categories Python, Q&A Tags paste, python, python-2.x, python-3.x, python-imaging-library Leave a comment

ImportError: No module named PIL

August 19, 2022 by Magenaut

I use this command in the shell to install PIL:

Categories Python, Q&A Tags easy-install, python, python-imaging-library Leave a comment

How to merge a transparent png image with another image using PIL

August 19, 2022 by Magenaut

I have a transparent png image “foo.png”
and I’ve opened another image with

Categories Python, Q&A Tags image, image-processing, python, python-imaging-library Leave a comment
Older posts
Page1 Page2 … Page5 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress