1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-12-07 23:32:55 +02:00

Add AVIF support

This commit is contained in:
DarthSim
2020-09-16 16:15:01 +06:00
parent bdbb496c18
commit 1bd789df4e
9 changed files with 239 additions and 199 deletions

View File

@@ -138,7 +138,7 @@ func canScaleOnLoad(imgtype imageType, scale float64) bool {
func canFitToBytes(imgtype imageType) bool {
switch imgtype {
case imageTypeJPEG, imageTypeWEBP, imageTypeHEIC, imageTypeTIFF:
case imageTypeJPEG, imageTypeWEBP, imageTypeAVIF, imageTypeTIFF:
return true
default:
return false