Skip to content

Thumbnail not generate when size 1000x600 #665

Description

@biggosh

I'm using django 4.2.x and easy_thumbanails 2.10 with python 3.13.

Some photos are not correct managed when creating the 1000x600 "thumbnails".

I tries to debug but I was not able to understand why. I discovered that if the image is opened/saved using GIMP without any action, then they are correctly processed.

The system doesn't accept the photo I would like to attach maybe due to file size. Let me know how to share it.

This is the error when debug is activated.

  File "[omissis]/.venv/lib/python3.13/site-packages/easy_thumbnails/processors.py", line 58, in apply_to_frames
    return Image.open(write_to)
           ~~~~~~~~~~^^^^^^^^^^
  File "[omissis]/.venv/lib/python3.13/site-packages/PIL/Image.py", line 3536, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x716fe9ec1c60>

Thanks,
BG

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions