How to output an image in python: | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to output an image in python:

How do I output any image I want in python

8th Jun 2023, 5:30 PM
Dylan Scully
Dylan Scully - avatar
9 Answers
+ 4
I would look through some of the wonderful codes by Oma Falk . She's managed to get some graphics using python on Sololearn.
8th Jun 2023, 7:42 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Here is a simple way to show an image in Sololearn from a URL. https://code.sololearn.com/c10iqZtr0FJw/?ref=app
9th Jun 2023, 2:42 PM
Brian
Brian - avatar
+ 2
It might seem a bit complicated but if you read about it and practise (sometimes a lot!), it doesn't seem so hard after all. Take this code from Oma Falk https://code.sololearn.com/cnu6WNCI9pTq/?ref=app Then check out this tutorial: https://realpython.com/image-processing-with-the-JUMP_LINK__&&__python__&&__JUMP_LINK-pillow-library/
9th Jun 2023, 6:40 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
You might need to install the appropriate packages or whatever they're called... pip install urllib
10th Jun 2023, 9:56 PM
Ausgrindtube
Ausgrindtube - avatar
0
You would need to use certain libraries. The one I'm aware of is Tkinter, the image will be in an application window rather than console. You need to do research on it
8th Jun 2023, 6:50 PM
Lamron
Lamron - avatar
0
Thx
8th Jun 2023, 8:12 PM
Dylan Scully
Dylan Scully - avatar
0
They're quite complex though, how do you make ones that are simple and just show how to output an image from the Internet (I know I should have said before)
8th Jun 2023, 8:43 PM
Dylan Scully
Dylan Scully - avatar
0
Tysm guys
9th Jun 2023, 3:33 PM
Dylan Scully
Dylan Scully - avatar
0
How come this doesn't work in other code executors
10th Jun 2023, 8:58 PM
Dylan Scully
Dylan Scully - avatar