Parcourir la source

TIFF supports color profiles

DarthSim il y a 1 mois
Parent
commit
f50176f95b
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 1 0
      CHANGELOG.md
  2. 2 1
      imagetype/imagetype.go

+ 1 - 0
CHANGELOG.md

@@ -11,6 +11,7 @@
 - Fix the `If-Modified-Since` request header handling when the `raw` processing option is used.
 - Fix `X-Origin-Height` and `X-Result-Height` debug header values for animated images.
 - Fix keeping copyright info in EXIF.
+- Fix preserving color profiles in TIFF images.
 - (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.
 

+ 2 - 1
imagetype/imagetype.go

@@ -161,7 +161,8 @@ func (it Type) SupportsColourProfile() bool {
 		it == PNG ||
 		it == WEBP ||
 		it == HEIC ||
-		it == AVIF
+		it == AVIF ||
+		it == TIFF
 }
 
 func (it Type) SupportsQuality() bool {