h2non / filetype

Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature
https://pkg.go.dev/github.com/h2non/filetype?tab=doc
MIT License
2.05k stars 178 forks source link

feat: Add image/avif support #127

Closed krlv closed 1 year ago

krlv commented 1 year ago

Resolves https://github.com/h2non/filetype/issues/111

Add image/avif support. Implementation is heavily inspired by https://github.com/h2non/filetype.py/pull/145 PR.

Attached test image is taken from official libavif repository:

License: released by the Eastman Kodak Company for unrestricted usage Source: http://r0k.us/graphics/kodak/