mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-06 18:03:29 +02:00
Add BMP support (#176)
* Start implementing TIFF support * bmp * revert Dockerfile * Update supported image formats list
This commit is contained in:
committed by
Sergey Alexandrovich
parent
977eedf6bf
commit
239ee95789
@@ -24,6 +24,7 @@ const (
|
||||
imageTypeICO = imageType(C.ICO)
|
||||
imageTypeSVG = imageType(C.SVG)
|
||||
imageTypeHEIC = imageType(C.HEIC)
|
||||
imageTypeBMP = imageType(C.BMP)
|
||||
imageTypeTIFF = imageType(C.TIFF)
|
||||
|
||||
contentDispositionFilenameFallback = "image"
|
||||
@@ -39,6 +40,7 @@ var (
|
||||
"ico": imageTypeICO,
|
||||
"svg": imageTypeSVG,
|
||||
"heic": imageTypeHEIC,
|
||||
"bmp": imageTypeBMP,
|
||||
"tiff": imageTypeTIFF,
|
||||
}
|
||||
|
||||
@@ -49,6 +51,7 @@ var (
|
||||
imageTypeGIF: "image/gif",
|
||||
imageTypeICO: "image/x-icon",
|
||||
imageTypeHEIC: "image/heif",
|
||||
imageTypeBMP: "image/bmp",
|
||||
imageTypeTIFF: "image/tiff",
|
||||
}
|
||||
|
||||
@@ -59,6 +62,7 @@ var (
|
||||
imageTypeGIF: "inline; filename=\"%s.gif\"",
|
||||
imageTypeICO: "inline; filename=\"%s.ico\"",
|
||||
imageTypeHEIC: "inline; filename=\"%s.heic\"",
|
||||
imageTypeBMP: "inline; filename=\"%s.bmp\"",
|
||||
imageTypeTIFF: "inline; filename=\"%s.tiff\"",
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user