Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Open Pictures with Python
#1
Hello guys
with my workmate we have to make a programm.
I'll explain you it quickly.
So we would like to make a kind of narrative story in which the user have to choose if an event will happend or not (for example if the WW2 will happend or not and it will change the actual society)
We already did the different Timelines that we saved as JPEG, but we have no idea of how we could open the picture with python, maybe we need to use a tier app ? can you enlighten us ?
Reply
#2
There are many solutions to open images with python. You can use GUI toolkits such as tkinter, wxpython, PyQt5, pygame etc. You can also use python bindings to the imagemagick library, such as the wand module
>>> from wand.image import Image                                                            
>>> from wand.display import display                                                        
>>> with Image(filename='/home/me/foo.jpg') as image:
...     display(image)
...
>>>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Find a shift between 2 pictures TazFleck 0 1,142 Jan-18-2023, 09:56 PM
Last Post: TazFleck
Photo put a green boarder and text around multiple pictures jackosullivan 5 1,459 Jul-05-2022, 10:39 AM
Last Post: snippsat
  Random pictures from a file aliwien 2 4,330 Apr-23-2021, 06:00 PM
Last Post: snippsat
  Help with taking pictures on raspberry pi octavia 1 1,692 Feb-07-2020, 04:54 PM
Last Post: Larz60+
  client-server pictures mcgrim 4 2,967 Oct-25-2019, 09:53 PM
Last Post: micseydel
  Comparing pictures pedro 1 2,737 Sep-11-2017, 07:51 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020