Adding support for heif (i.e. heic files).

This commit is contained in:
Jeremy Gordon 2019-09-24 11:57:29 -07:00 committed by Paul van Santen
parent 5a9d7f21d9
commit f9eadf55bb
No known key found for this signature in database
GPG key ID: AD10F40CB69516B6
6 changed files with 58 additions and 3 deletions

View file

@ -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