Merge pull request #5656 from jacobgkau/portrait-thumbnails

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

View File

@@ -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

View File

@@ -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"),
},