Skip to content

Fix 'NoneType' has no attribute 'lower' #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 30, 2024
Merged

Fix 'NoneType' has no attribute 'lower' #124

merged 2 commits into from
Jun 30, 2024

Conversation

jepler
Copy link
Owner

@jepler jepler commented Jun 30, 2024

It's a mystery to me how this passed my local testing. thumbnail
is an image copy which is documented
to be None in that case.

Retrieve the format property from the originally opened image instead.

Closes #123

@spvkgn please test if you can

jepler added 2 commits June 30, 2024 08:24
It's a mystery to me how this passed my local testing. `thumbnail`
is an image copy which is [documented](https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.format)
to be None in that case.

Retrieve the format property from the originally opened image instead.

Closes #123
.. by treating it as a png file, so that the result will be a
losslessly compressed version of the original
@jepler jepler merged commit cc470ea into main Jun 30, 2024
@jepler jepler deleted the issue123 branch June 30, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: 'NoneType' object has no attribute 'lower'
1 participant