mattiasw / ExifReader

A JavaScript Exif info parser.
Mozilla Public License 2.0
749 stars 89 forks source link

Feature request: AVIF format #273

Closed 7freaks-otte closed 5 months ago

7freaks-otte commented 6 months ago

As the AVIF image format is now supported in all major browsers (even in Edge since Jan 26, 2024) I'd love to see it supported in ExifReader.

From my understanding the container format is HEIF and as HEIC is already supported, AVIF could probably be implemented fairly easy.

Browser Support: https://caniuse.com/avif AVIF syntax and semantics: https://aomediacodec.github.io/av1-avif/ At least image_height and image_width seem to be inherited by HEIF: https://aomediacodec.github.io/av1-avif/#biblio-heif

mattiasw commented 6 months ago

Hi! AVIF support is actually at the top of my list of new functionality I want to add (after a couple of bug fixes). Thanks for letting me know there is interest in it. I will try to prioritize it in the coming weeks.

7freaks-otte commented 6 months ago

Thank you, that is really good news @mattiasw 🙌🏼

StigNygaard commented 6 months ago

Happy to hear AVIF is prioritized. I was just going to make an issue when I saw this 🙂 If any help, here is a Photoshop extension for saving in AVIF format: https://github.com/0xC0000054/avif-format

mattiasw commented 5 months ago

This is finally starting to look good (had to re-implement, the HEIC code was very naive). If you have any images I can test on that would be appreciated. I only have a few I created myself and they may not be representative.

mattiasw commented 5 months ago

Released as 4.22.0. Please try it out and open an issue if there are any problems.