-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
What did you do?
-
I created script to check Unix image viewers available in PIL.ImageShow module. The script example for XDGViewer is provided
below. -
I run the script for all Linux/Unix viewers except XVViewer (I didn't manage to obtain it)
What did you expect to happen?
I expected to open my image with each single viewer I tried to use:
XDGViewer, DisplayViewer, GmDisplayViewer, EogViewer
What actually happened?
The image failed to open with
a) XDGViewer
b) GmDisplayViewer
What are your OS, Python and Pillow versions?
- OS: Ubuntu, 20.04.3 LTS (Focal Fossa)
- Python: 3.9.9
- Pillow: 9.1.0.dev0
from PIL import Image
from PIL.ImageShow import XDGViewer
if __name__ == "__main__":
viewer = XDGViewer()
img_file = "path/to/image_file"
with Image.open(img_file) as im:
viewer.show(im)Reactions are currently unavailable
