Skip to content

Can't load PNG produced by Blender 3.6 #2745

@theres1

Description

@theres1

Describe the bug

I use Python bindings https://github.com/LeoHsiao1/pyexiv2 though I think the problem is related to exiv2 library itself.
Problem: Can't load PNG file saved by Blender 3.6. I get error: RuntimeError: This does not look like a TIFF image

Exception from Python:

    with pyexiv2.Image(self.prev.filepath) as img:
  File "C:\Users\user\AppData\Roaming\Python\Python310\site-packages\pyexiv2\core.py", line 15, in __init__
    self.img = exiv2api.Image(filename.encode(encoding))
RuntimeError: This does not look like a TIFF image

To Reproduce

Steps to reproduce the behavior:

  1. Save render in Blender 3.6 (specifically this version) or use image provided by me
    blender 3 6 image
  2. Load image via pyexiv2.Image(filepath) (Python bindings)

Expected behavior

PNG produced by other programs load without problems.

Desktop (please complete the following information):

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