mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-01 18:01:23 -05:00
Merge pull request #4634 from owncloud/thumbnail-support-tiff-bmp
add thumbnail support for tiff and bmp files
This commit is contained in:
5
changelog/unreleased/thumbnails-tiff-bmp.md
Normal file
5
changelog/unreleased/thumbnails-tiff-bmp.md
Normal 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
|
||||
@@ -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": {},
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -47,9 +47,22 @@ func DefaultConfig() *config.Config {
|
||||
ResponseType: "code",
|
||||
Scope: "openid profile email",
|
||||
},
|
||||
Apps: []string{"files", "search", "preview", "text-editor", "pdf-viewer", "external", "user-management"},
|
||||
Apps: []string{"files", "search", "text-editor", "pdf-viewer", "external", "user-management"},
|
||||
ExternalApps: []config.ExternalApp{
|
||||
{
|
||||
ID: "preview",
|
||||
Path: "web-app-preview",
|
||||
Config: map[string]interface{}{
|
||||
"mimeTypes": []string{
|
||||
"image/tiff",
|
||||
"image/bmp",
|
||||
"image/x-ms-bmp",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
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"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user