An open API service indexing awesome lists of open source software.

https://github.com/movsb/go-image-avif-size


https://github.com/movsb/go-image-avif-size

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

          

# GO-IMAGE-AVIF-SIZE

Try to easily get the **width** and **height** of an AVIF image file.

## Usage

Import `_ "github.com/movsb/go-image-avif-size"` and use `image.DecodeConfig()`.

See the test file for more.

## Caveats

* This package uses some brute-force algorithm to detect the size, so it may be wrong.
* There may be **Orientation**/**Rotation** EXIF metadata in the image file, so the resulting width and height may be altered.