Thanks to visit codestin.com
Credit goes to github.com

Skip to content

"Error occured when calling imagethumbnails" message #348

@barryrowlingson

Description

@barryrowlingson

Thumbnailing JPEGs failed with a

20:44:31 hyde Error occured when calling imagethumbnails

This line:

im = im.convert('RGBA')

hyde converts the PIL image to RGBA, but that fails with Pillow after v3.7 because it was deprecated and then removed:

python-pillow/Pillow@193c756

with the advice to convert to RGB before saving. I think the solution for hyde is to not convert to RGBA on line 295 for JPEG files.

short diff attached tests and only converts non-JPEG to RGBA.

diff.txt

(Let me know if you'd rather I did a fork and PR, but its about two lines!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions