1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-29 23:07:40 +02:00

GIF output support

This commit is contained in:
DarthSim
2018-11-08 16:34:21 +06:00
parent fcdc4580a5
commit 2c0b538eb5
16 changed files with 535 additions and 123 deletions

View File

@@ -24,12 +24,14 @@ var (
imageTypeJPEG: "image/jpeg",
imageTypePNG: "image/png",
imageTypeWEBP: "image/webp",
imageTypeGIF: "image/gif",
}
contentDispositions = map[imageType]string{
imageTypeJPEG: "inline; filename=\"image.jpg\"",
imageTypePNG: "inline; filename=\"image.png\"",
imageTypeWEBP: "inline; filename=\"image.webp\"",
imageTypeGIF: "inline; filename=\"image.gif\"",
}
authHeaderMust []byte