https://github.com/movsb/go-image-avif-size
https://github.com/movsb/go-image-avif-size
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/movsb/go-image-avif-size
- Owner: movsb
- License: mit
- Created: 2025-06-07T01:37:47.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-07T01:50:36.000Z (4 months ago)
- Last Synced: 2025-09-19T19:20:45.497Z (17 days ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.