Skip to content

XDGViewer and GmDisplayViewer fail to show images #5976

@alv2017

Description

@alv2017

What did you do?

  1. I created script to check Unix image viewers available in PIL.ImageShow module. The script example for XDGViewer is provided
    below.

  2. 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)

cosmonaut

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions