#35884: Django doesn't support Pillow v11: ValueError('Invalid dimensions')
-------------------------------------+-------------------------------------
Reporter: jedie | Type:
| Uncategorized
Status: new | Component: File
| uploads/storage
Version: 5.0 | Severity: Normal
Keywords: pillow, PIL, image, | Triage Stage:
imagefield | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Django's django.core.files.images.get_image_dimensions() feeds PIL with
chunks to get the image size. Pillow v11 adds "raise ValueError" in v11
with https://github.com/python-
pillow/Pillow/commit/e6e5ef5c5fbd83ac5dd63301e4d7d6860a7b2d09#diff-
6ad43f85f1a075181d4d8cfcd97ae27bba1eccf5c3db5a3457160f98218eba6eR1404 that
Django doesn't catch in the feed loop, here:
https://github.com/django/django/blob/968397228fe03968bb855856532569586c8a8a1c/django/core/files/images.py#L35-L89
--
Ticket URL: <https://code.djangoproject.com/ticket/35884>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070192f7a82987-099c65f1-c55b-433b-a0fa-05fc2b9bf612-000000%40eu-central-1.amazonses.com.