Merge pull request #5656 from jacobgkau/portrait-thumbnails

thumbnails: Add portrait resolutions to default config
This commit is contained in:
Martin authored and GitHub committed 2023-02-27 09:43:21 +01:00
commit 473cc7dae6
2 files changed
+6 -1

No files matched your search

@@ -0,0 +1,5 @@
Bugfix: Add portrait thumbnail resolutions
Add portrait-orientation resolutions to the thumbnail service's default configuration. This prevents portrait photos from being heavily cropped into landscape resolutions in the web viewer.
https://github.com/owncloud/ocis/pull/5656
@@ -37,7 +37,7 @@ func DefaultConfig() *config.Config {
Name: "thumbnails",
},
Thumbnail: config.Thumbnail{
Resolutions: []string{"16x16", "32x32", "64x64", "128x128", "1920x1080", "3840x2160", "7680x4320"},
Resolutions: []string{"16x16", "32x32", "64x64", "128x128", "1080x1920", "1920x1080", "2160x3840", "3840x2160", "4320x7680", "7680x4320"},
FileSystemStorage: config.FileSystemStorage{
RootDirectory: path.Join(defaults.BaseDataPath(), "thumbnails"),
},