Skip to content

Magenaut

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

image

matplotlib: how to draw a rectangle on image

August 16, 2022 by Magenaut

How to draw a rectangle on an image, like this:
matplotlib: how to draw a rectangle on image

Categories Python, Q&A Tags image, matplotlib, python Leave a comment

Changing image hue with Python PIL

August 15, 2022 by Magenaut

Using Python PIL, I’m trying to adjust the hue of a given image.

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

How to crop the internal area of a contour?

August 15, 2022 by Magenaut

I am working on Retinal fundus images.The image consists of a circular retina on a black background. With OpenCV, I have managed to get a contour which surrounds the whole circular Retina. What I need is to crop out the circular retina from the black background.

Categories Python, Q&A Tags contour, image, image-processing, opencv, python Leave a comment

How do you merge images into a canvas using PIL/Pillow?

August 15, 2022 by Magenaut

I’m not familiar with PIL, but I know it’s very easy to put a bunch of images into a grid in ImageMagick.

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

Adding borders to an image using python

August 14, 2022 by Magenaut

I have a large number of images of a fixed size (say 500*500). I want to write a python script which will resize them to a fixed size (say 800*800) but will keep the original image at the center and fill the excess area with a fixed color (say black).

Categories Python, Q&A Tags image, image-processing, python Leave a comment

Convert RGB color to English color name, like ‘green’ with Python

August 14, 2022 by Magenaut

I want to convert a color tuple to a color name, like ‘yellow’ or ‘blue’

Categories Python, Q&A Tags colors, css, image, python, tuples Leave a comment

PIL and pygame.image

August 14, 2022 by Magenaut

I had opened an image using PIL, as

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

Python OpenCV load image from byte string

August 14, 2022 by Magenaut

I’m trying to load image from string like as PHP function imagecreatefromstring

Categories Python, Q&A Tags byte, image, opencv, python Leave a comment

Python – Find dominant/most common color in an image

August 14, 2022 by Magenaut

I’m looking for a way to find the most dominant color/tone in an image using python. Either the average shade or the most common out of RGB will do. I’ve looked at the Python Imaging library, and could not find anything relating to what I was looking for in their manual, and also briefly at VTK.

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

How do you base-64 encode a PNG image for use in a data-uri in a CSS file?

August 13, 2022 by Magenaut

I want to base-64 encode a PNG file, to include it in a data:url in my stylesheet. How can I do that?

Categories Python, Q&A Tags base64, css, data-uri, image, python Leave a comment
Older posts
Newer posts
← Previous Page1 … Page9 Page10 Page11 Page12 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