Skip to content
Sign upLog in
← Back to Community

How to import images in python

Profile icon
mattman101

I am wanting to import images to acompany a story. I have tryed metpoint lab and PIL. metpoint stops my code and PIL dosn't display the image. What can I do?

Voters
Profile icon
mattman101
Comments
hotnewtop
Profile icon
RYANTADIPARTHI

You cannot display images in the console, but if you want it in pygame, or in HTML, css, or js. Try these links:

https://www.geeksforgeeks.org/python-display-images-with-pygame/
https://www.w3schools.com/html/html_images.asp

Profile icon
Coder100

You can't display images in the console, but you can do two things:

ASCII art.

https://fsymbols.com

Pygame

You could technically also use this

Profile icon
SUHASTADIPARTH1

If you are writing a story, and you want images to accompanied with, you might want to use HTML, CSS, and JS

Profile icon
SUHASTADIPARTH1

You cannot display in the python console.

Profile icon
Lann4daze

You can't display images in the python console.