![]() ![]() If event = "Exit" or event = sg.WIN_CLOSED: Window = sg.Window("Image Viewer", layout) Then add this code to the file: # image_viewer.py To see how, create a new file and name it image_viewer.py. PySimpleGUI lets you create a simple image viewer in less than 50 lines. Now that you have your dependencies installed, you can create a brand new application! Creating an Image Viewer You will also need Pillow because Tkinter only supports GIF and PGM/PPM image types.įortunately, you can install both of these packages easily with pip: python3 -m pip install PySimpleGUI Pillow You need to install PySimpleGUI as it is not included with Python. You will be using the regular version of PySimpleGUI, which wraps Tkinter, rather than its wxPython or PyQt variants. In this tutorial, you will learn how to use PySimpleGUI to create a simple Image Viewer. Having a correctly shown image is much more important for me because this is what an image viewer should do in my opinion.PySimpleGUI makes creating applications easy. For this purpose I can use GIMP, imagemagick or other image editing software. Of course the scaling algorithms should work gamma-correctly and be Upscaling use, for example, a Super Resolution shader. do not hang or crash when opening a huge JPG fileīut instead show a smaller version of it.įor downscaling use the SSIM-based perceptual downscaling algorithm and for do not ignore information about gamma in PNG and This is possible by using ffmpeg and other third party software for the * Support as many image codecs as possible, including avif, JpegXL, etc. The features I'm missing are the following: I feel that it lacks essential capabilities that I think are crucial for a more immersive viewing experience. My default image viewer Eye of Gnome is not giving me the image viewing experience I desire. Give it a try and let us know your thoughts. There are several other applications out there that you could still use but we felt these are the best image viewers for Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |