mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 09:20:29 -07:00
Adds AVIF support
* This adds a new type AVIF to the supported type list if libvips >= 8.9.0 * Calls libheif through libvips with the AV1 compression set to save AVIF images.
This commit is contained in:
parent
4f683f98d8
commit
83c14048e0
9 changed files with 86 additions and 9 deletions
3
type.go
3
type.go
|
|
@ -30,6 +30,8 @@ const (
|
|||
MAGICK
|
||||
// HEIF represents the HEIC/HEIF/HVEC image type
|
||||
HEIF
|
||||
// AVIF represents the AVIF image type.
|
||||
AVIF
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -48,6 +50,7 @@ var ImageTypes = map[ImageType]string{
|
|||
SVG: "svg",
|
||||
MAGICK: "magick",
|
||||
HEIF: "heif",
|
||||
AVIF: "avif",
|
||||
}
|
||||
|
||||
// imageMutex is used to provide thread-safe synchronization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue