thumbnails: Add portrait resolutions to default config

This commit is contained in:
Jacob Kauffmann
2023-02-26 12:14:41 -07:00
parent 8ec167d792
commit a742e943df
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.
#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"),
},