From 87f86f8c35b976e81eaaa3de0d7b6176b9193258 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Wed, 24 Jun 2026 10:56:48 +0200 Subject: [PATCH] Revert "fix: disallow thumbnails for tiff and jpeg2000 images" The alpine base images now has a fixed libvips. So we can enable previews for these formats again. This reverts commit 66ba9504a29cae40d3abe3180e550610808db979. --- services/thumbnails/pkg/thumbnail/mimetypes_vips.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/services/thumbnails/pkg/thumbnail/mimetypes_vips.go b/services/thumbnails/pkg/thumbnail/mimetypes_vips.go index 597d2e742e..b94fafafaf 100644 --- a/services/thumbnails/pkg/thumbnail/mimetypes_vips.go +++ b/services/thumbnails/pkg/thumbnail/mimetypes_vips.go @@ -2,15 +2,6 @@ package thumbnail -import "github.com/davidbyttow/govips/v2/vips" - -func init() { - // temporary remove TIFF and JP2K from go-vips' list of supported - // imagetypes - delete(vips.ImageTypes, vips.ImageTypeTIFF) - delete(vips.ImageTypes, vips.ImageTypeJP2K) -} - var ( // SupportedMimeTypes contains an all mimetypes which are supported by the thumbnailer. SupportedMimeTypes = map[string]struct{}{ @@ -20,6 +11,7 @@ var ( "image/gif": {}, "image/bmp": {}, "image/x-ms-bmp": {}, + "image/tiff": {}, "text/plain": {}, "audio/flac": {}, "audio/mpeg": {},