-
Notifications
You must be signed in to change notification settings - Fork 349
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
Add support for AVIF images #363
Comments
Would you please upload some AVIF test file here? |
There are a few CC-BY-SA in this GitHub. |
I found out that Pinry relies on ImageField model field used to upload images and get some metadata about them: https://github.com/pinry/pinry/blob/master/django_images/models.py#L47 On the other hand, ImageField relies on PIL/Pillow to validate uploaded image extension and probably more: https://github.com/django/django/blob/main/django/core/validators.py#L572 And it turns out that AVIF support is waiting for two years to be merged to Pillow: python-pillow/Pillow#5201 |
We should add support for AVIF images (and maybe HEIF too? but I'll prioritize AVIF myself), such as this:
https://libre-software.net/image/avif-test/
I see two problems right now:
IntegrityError at /api/v2/pins/ NOT NULL constraint failed: django_images_image.height
The text was updated successfully, but these errors were encountered: