Python PIL Fill an image with a color outline?

I have a picture that is in PNG format with no background. What I am trying to do is fill this image with yellow onl...

Generate random colors (RGB)?

I just picked up image processing in python this past week at the suggestion of a friend to generate patterns of ran...

'tuple' object does not support item assignment?

I am using the PIL library. I am trying to make an image look red-er, this is what i've got. from PIL import Image...

How to bind spacebar key to a certain method in tkinter (python)?

I am working on a project in python, and I made a method to draw a specific thing in tkinter. I want it so that when...

scipy.misc module has no attribute imread??

I am trying to read an image with scipy. However it does not accept the scipy.misc.imread part. What could be the ca...

Polygon crop/clip using Python / PIL?

The polygon points along with the uncut, original image are sent by client to the server. Is there a way that I ca...

ImportError: No module named PIL?

I use this command in the shell to install PIL: easy_install PIL then I run python and type this: import PIL. But...

Image.fromarray just produces black image?

I'm trying to save a numpy matrix as a grayscale image using Image.fromarray. It seems to work on a random matrix, b...

Image.open() cannot identify image file - Python??

I am running Python 2.7 in Visual Studio 2013. The code previously worked ok when in Spyder, but when I run: import...

How to crop an image using PIL??

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

How can I save an image with PIL??

I have just done some image processing using the Python image library (PIL) using a post I found earlier to perform ...

ImportError: No module named PIL?

I use this command in the shell to install PIL: easy_install PIL then I run python and type this: import PIL. But...

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

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

Getting error “Could not import PIL.Image. The use of `array_to_img` requires PIL.”?

I am a beginner to machine learning, so I was trying to create a model for recognizing images referenced from Keras ...