Просмотр исходного кода

Merge branch 'master' into version/4

DarthSim 2 месяцев назад
Родитель
Сommit
e40851e460
6 измененных файлов с 23 добавлено и 5 удалено
  1. 10 0
      CHANGELOG.md
  2. 1 1
      docker/Dockerfile
  3. 3 0
      go.mod
  4. 2 2
      go.sum
  5. 6 1
      processing_handler.go
  6. 1 1
      version/version.go

+ 10 - 0
CHANGELOG.md

@@ -1,5 +1,15 @@
 # Changelog
 
+## [Unreleased]
+### Fixed
+- Fix the `Vary` header value when `IMGPROXY_AUTO_JXL` or `IMGPROXY_ENFORCE_JXL` configs are set to `true`.
+- (pro) Fix generating thumbnails for VP9 videos with high bit depth.
+- (pro) Fix `IMGPROXY_CUSTOM_RESPONSE_HEADERS` and `IMGPROXY_RESPONSE_HEADERS_PASSTHROUGH` configs behavior when the `raw` processing option is used.
+
+## [3.29.1] - 2025-07-11
+### Fixed
+- Fix parsing and minifying some SVGs.
+
 ## [3.29.0] - 2025-07-08
 ### Added
 - Add [IMGPROXY_MAX_RESULT_DIMENSION](https://docs.imgproxy.net/latest/configuration/options#IMGPROXY_MAX_RESULT_DIMENSION) config and [max_result_dimension](https://docs.imgproxy.net/latest/usage/processing#max-result-dimension) processing option.

+ 1 - 1
docker/Dockerfile

@@ -1,4 +1,4 @@
-ARG BASE_IMAGE_VERSION="v3.13.2"
+ARG BASE_IMAGE_VERSION="v3.13.3"
 
 FROM ghcr.io/imgproxy/imgproxy-base:${BASE_IMAGE_VERSION} AS build
 

+ 3 - 0
go.mod

@@ -236,3 +236,6 @@ require (
 	sigs.k8s.io/structured-merge-diff/v4 v4.7.0 // indirect
 	sigs.k8s.io/yaml v1.5.0 // indirect
 )
+
+// Freeze github.com/tdewolff/parse/v2 to v2.7.21
+replace github.com/tdewolff/parse/v2 => github.com/tdewolff/parse/v2 v2.7.21

+ 2 - 2
go.sum

@@ -429,8 +429,8 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o
 github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
 github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
 github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
-github.com/tdewolff/parse/v2 v2.8.1 h1:J5GSHru6o3jF1uLlEKVXkDxxcVx6yzOlIVIotK4w2po=
-github.com/tdewolff/parse/v2 v2.8.1/go.mod h1:Hwlni2tiVNKyzR1o6nUs4FOF07URA+JLBLd6dlIXYqo=
+github.com/tdewolff/parse/v2 v2.7.21 h1:OCuPFtGr4mXdnfKikQlUb0n654ROJANhBqCk+wioJ/A=
+github.com/tdewolff/parse/v2 v2.7.21/go.mod h1:I7TXO37t3aSG9SlPUBefAhgIF8nt7yYUwVGgETIoBcA=
 github.com/tdewolff/test v1.0.11 h1:FdLbwQVHxqG16SlkGveC0JVyrJN62COWTRyUFzfbtBE=
 github.com/tdewolff/test v1.0.11/go.mod h1:XPuWBzvdUzhCuxWO1ojpXsyzsA5bFoS3tO/Q3kFuTG8=
 github.com/tinylib/msgp v1.3.0 h1:ULuf7GPooDaIlbyvgAxBV/FI7ynli6LZ1/nVUNu+0ww=

+ 6 - 1
processing_handler.go

@@ -50,7 +50,12 @@ func initProcessingHandler() {
 
 	vary := make([]string, 0)
 
-	if config.AutoWebp || config.EnforceWebp || config.AutoAvif || config.EnforceAvif {
+	if config.AutoWebp ||
+		config.EnforceWebp ||
+		config.AutoAvif ||
+		config.EnforceAvif ||
+		config.AutoJxl ||
+		config.EnforceJxl {
 		vary = append(vary, "Accept")
 	}
 

+ 1 - 1
version/version.go

@@ -1,3 +1,3 @@
 package version
 
-const Version = "3.29.0"
+const Version = "3.29.1"