add thumbnail support for tiff and bmp files

This commit is contained in:
David Christofas
2022-09-22 01:30:49 +02:00
parent fe0210d3e6
commit 0d1d9f2f25
3 changed files with 14 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
Enhancement: Add thumbnails support for tiff and bmp files
Support generating thumbnails for tiff and bmp files in the thumbnails service.
https://github.com/owncloud/ocis/pull/4634

View File

@@ -13,11 +13,14 @@ import (
var (
// SupportedMimeTypes contains a all mimetypes which are supported by the thumbnailer.
SupportedMimeTypes = map[string]struct{}{
"image/png": {},
"image/jpg": {},
"image/jpeg": {},
"image/gif": {},
"text/plain": {},
"image/png": {},
"image/jpg": {},
"image/jpeg": {},
"image/gif": {},
"image/bmp": {},
"image/x-ms-bmp": {},
"image/tiff": {},
"text/plain": {},
}
)

View File

@@ -49,7 +49,7 @@ func DefaultConfig() *config.Config {
},
Apps: []string{"files", "search", "preview", "text-editor", "pdf-viewer", "external", "user-management"},
Options: map[string]interface{}{
"previewFileMimeTypes": []string{"image/gif", "image/png", "image/jpeg", "text/plain"},
"previewFileMimeTypes": []string{"image/gif", "image/png", "image/jpeg", "text/plain", "image/tiff", "image/bmp", "image/x-ms-bmp"},
},
},
},