Skip to content
← Back to Community
Images in Python?
Profile icon
DuncanVaughan5

I am wondering how I can make an image show up in python on repl.it. I found code that did this, but it produced the image in black and white, and I don't want that because they also had it create red, blue, and green filtered images, while I just want one with color. Is this possible?

Voters
Profile icon
carrot37
Profile icon
KubilayAlaslar
Profile icon
AlonaVoitienko
Profile icon
AaronWang35
Profile icon
myososo
Profile icon
TylerCookTugwoo
Profile icon
Skyriikz
Profile icon
snowman13245
Profile icon
yalis
Profile icon
TanishGupta2
Comments
hotnewtop
Profile icon
RyanRana

This link allows you to use it with PIL library: https://www.geeksforgeeks.org/working-images-python/

This link allows you to do it with Tkinter library: https://www.c-sharpcorner.com/blogs/basics-for-displaying-image-in-tkinter-python

This link allows you to do it with Pygame:https://pythonprogramming.net/displaying-images-pygame/

If this post helped you leave an upvote, please!

Profile icon
mwilki7

I tested something like this out using pygame
Hope this may help:
https://repl.it/@mwilki7/python-game

Profile icon
keshav1401

Hi Duncan, can u pls post the code you used to do this. That would be greatly appreciated!

Profile icon
taylorboyers

I was only able to find it for HTML I was wondering too