Skip to content
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 partial support for avif #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brunoais
Copy link

From the spec, this only covers the most common format for AVIF images. I can't do more because the alternatives are speced behind a paywall.
AVIF: https://aomediacodec.github.io/av1-avif/v1.1.0.html
Points to HEIF: https://www.iso.org/standard/66067.html

From the spec, this only covers the most common format for AVIF images.
I can't do more because the alternatives are speced behind a paywall.
AVIF: https://aomediacodec.github.io/av1-avif/v1.1.0.html
Points to HEIF: https://www.iso.org/standard/66067.html
@@ -119,7 +120,7 @@ def get_image_metadata_from_bytesio(input, size, file_path=None):
"""
height = -1
width = -1
data = input.read(26)
data = input.read(28)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 2 bytes because I thought it would be fine to read extra 2 bytes and it would allow an extra opportunity to identify if it's AVIF

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.

1 participant