mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 16:09:14 +00:00
Add support for GIF images (#1024)
This commit is contained in:
@@ -22,6 +22,7 @@ const (
|
||||
TypeWebp MediaType = "image/webp"
|
||||
TypeBmp MediaType = "image/bmp"
|
||||
TypeHeic MediaType = "image/heic"
|
||||
TypeGif MediaType = "image/gif"
|
||||
|
||||
// Raw formats
|
||||
TypeDNG MediaType = "image/x-adobe-dng"
|
||||
@@ -78,6 +79,7 @@ var SupportedMimetypes = [...]MediaType{
|
||||
TypeWebp,
|
||||
TypeBmp,
|
||||
TypeHeic,
|
||||
TypeGif,
|
||||
}
|
||||
|
||||
var WebMimetypes = [...]MediaType{
|
||||
@@ -85,6 +87,7 @@ var WebMimetypes = [...]MediaType{
|
||||
TypePng,
|
||||
TypeWebp,
|
||||
TypeBmp,
|
||||
TypeGif,
|
||||
}
|
||||
|
||||
var RawMimeTypes = [...]MediaType{
|
||||
@@ -152,6 +155,7 @@ var fileExtensions = map[string]MediaType{
|
||||
".tiff": TypeTiff,
|
||||
".bmp": TypeBmp,
|
||||
".heic": TypeHeic,
|
||||
".gif": TypeGif,
|
||||
|
||||
// RAW formats
|
||||
".dng": TypeDNG,
|
||||
|
||||
Reference in New Issue
Block a user