Skip to content

Commit fab1986

Browse files
committed
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 c40629d.
1 parent dbc8a21 commit fab1986

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

services/thumbnails/pkg/thumbnail/mimetypes_vips.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22

33
package thumbnail
44

5-
import "github.com/davidbyttow/govips/v2/vips"
6-
7-
func init() {
8-
// temporary remove TIFF and JP2K from go-vips' list of supported
9-
// imagetypes
10-
delete(vips.ImageTypes, vips.ImageTypeTIFF)
11-
delete(vips.ImageTypes, vips.ImageTypeJP2K)
12-
}
13-
145
var (
156
// SupportedMimeTypes contains an all mimetypes which are supported by the thumbnailer.
167
SupportedMimeTypes = map[string]struct{}{
@@ -20,6 +11,7 @@ var (
2011
"image/gif": {},
2112
"image/bmp": {},
2213
"image/x-ms-bmp": {},
14+
"image/tiff": {},
2315
"text/plain": {},
2416
"audio/flac": {},
2517
"audio/mpeg": {},

0 commit comments

Comments
 (0)