Merge pull request #4634 from owncloud/thumbnail-support-tiff-bmp
add thumbnail support for tiff and bmp files
This commit is contained in:
@@ -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 (
|
var (
|
||||||
// SupportedMimeTypes contains a all mimetypes which are supported by the thumbnailer.
|
// SupportedMimeTypes contains a all mimetypes which are supported by the thumbnailer.
|
||||||
SupportedMimeTypes = map[string]struct{}{
|
SupportedMimeTypes = map[string]struct{}{
|
||||||
"image/png": {},
|
"image/png": {},
|
||||||
"image/jpg": {},
|
"image/jpg": {},
|
||||||
"image/jpeg": {},
|
"image/jpeg": {},
|
||||||
"image/gif": {},
|
"image/gif": {},
|
||||||
"text/plain": {},
|
"image/bmp": {},
|
||||||
|
"image/x-ms-bmp": {},
|
||||||
|
"image/tiff": {},
|
||||||
|
"text/plain": {},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -47,9 +47,22 @@ func DefaultConfig() *config.Config {
|
|||||||
ResponseType: "code",
|
ResponseType: "code",
|
||||||
Scope: "openid profile email",
|
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{}{
|
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