Browse Source

Remove WebP, AVIF, and ICO from preferred formats

DarthSim 2 years ago
parent
commit
3f9a0641f1
3 changed files with 2 additions and 4 deletions
  1. 1 0
      CHANGELOG.md
  2. 0 3
      config/config.go
  3. 1 1
      docs/configuration.md

+ 1 - 0
CHANGELOG.md

@@ -4,6 +4,7 @@
 ### Change
 - Change `IMGPROXY_FORMAT_QUALITY` default value to `avif=65`.
 - Change `IMGPROXY_AVIF_SPEED` default value to `8`.
+- Change `IMGPROXY_PREFERRED_FORMATS` default value to `jpeg,png,gif`;
 
 ## [3.11.0] - 2022-11-17
 ### Add

+ 0 - 3
config/config.go

@@ -245,9 +245,6 @@ func Reset() {
 		imagetype.JPEG,
 		imagetype.PNG,
 		imagetype.GIF,
-		imagetype.WEBP,
-		imagetype.AVIF,
-		imagetype.ICO,
 	}
 
 	SkipProcessingFormats = make([]imagetype.Type, 0)

+ 1 - 1
docs/configuration.md

@@ -259,7 +259,7 @@ You can set up a fallback image that will be used in case imgproxy is unable to
 
 When the resulting image format is not explicitly specified in the imgproxy URL via the extension or the `format` processing option, imgproxy will choose one of the preferred formats:
 
-* `IMGPROXY_PREFERRED_FORMATS`: a list of preferred formats, comma divided. Default: `jpeg,png,gif,webp,avif,ico`
+* `IMGPROXY_PREFERRED_FORMATS`: a list of preferred formats, comma divided. Default: `jpeg,png,gif`
 
 imgproxy is guided by the following rules when choosing the resulting format: