Skip to content

Unable to open DDS image: Unimplemented pixel format #7423

Description

@jmctune

What did you do?

Attempted to read the attached DDS image.

What did you expect to happen?

Expected it to render in my tkinter GUI.

What actually happened?

Received the following error:

NotImplementedError: Unimplemented pixel format b'\x00\x00\x00\x00'

What are your OS, Python and Pillow versions?

  • OS: Windows 11
  • Python: 3.11 64-bit
  • Pillow: 10.0.1
from PIL import ImageTk

with open ("test.dds", "rb") as f:
  data = f.read()

image = ImageTk.PhotoImage(data=data)

Additional notes

I'm guessing the version of DDS that I am attempting to render is not supported solely based off of the error message. I am passing byte data and not the files themselves, but am unsure of how else to get this to render. Attempted to use Pillow, but no luck.

Attached zip with dds image inside:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions