Skip to content

Cannot save TIFF files with clipping info #7008

@dorphalsig

Description

@dorphalsig

I am opening a TIFF file with clipping path data (see #6025), I now want to save it with another name (nothing else was done to it)

from PIL import Image
img = Image.open('images/path test.tif')
ex = ""
try:
    img.save("path test public.tif")
except Exception as e:
    ex=e

error message is "path test public.tif: Failed to allocate memory for custom tag binary object (-1578999712 elements of 1 bytes each)."

when I print the exception I see: RuntimeError('Error setting from dictionary')
file is attached inside a zip
Path test.zip

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