h2non / filetype

Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature

Home Page:https://pkg.go.dev/github.com/h2non/filetype?tab=doc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add AVIF image filetype

koodimetsa opened this issue Β· comments

AVIF support is getting traction in browsers and it would be great to detect AVIF-files as images πŸ‘πŸΌ

Could you provide a small test file?

Header bytes seem to be:

00 00 00 18 66 74 79 70 61 76 69 66 00 00 00 00
....ftypavif....

The avif part can be avif, avis or avio according to https://aomediacodec.github.io/av1-avif/#biblio-isobmff

Hi,

Here is one:
https://raw.githubusercontent.com/AOMediaCodec/av1-avif/master/testFiles/Microsoft/Mexico.avif

Would put it here, but Github doesn't support AVIF yet πŸ˜