mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-14 18:05:55 -07:00
Adding support for heif (i.e. heic files).
This commit is contained in:
parent
5a9d7f21d9
commit
f9eadf55bb
6 changed files with 58 additions and 3 deletions
3
type.go
3
type.go
|
|
@ -25,6 +25,8 @@ const (
|
|||
SVG
|
||||
// MAGICK represents the libmagick compatible genetic image type.
|
||||
MAGICK
|
||||
// HEIF represents the HEIC/HEIF/HVEC image type
|
||||
HEIF
|
||||
)
|
||||
|
||||
// ImageType represents an image type value.
|
||||
|
|
@ -45,6 +47,7 @@ var ImageTypes = map[ImageType]string{
|
|||
PDF: "pdf",
|
||||
SVG: "svg",
|
||||
MAGICK: "magick",
|
||||
HEIF: "heif",
|
||||
}
|
||||
|
||||
// imageMutex is used to provide thread-safe synchronization
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue