1
Fork 0

Merge pull request #798 from WindLi001/limit-thumbnail-size

Limit thumbnail size of small original photo in new branch
This commit is contained in:
Viktor Strate Kløvedal 2023-02-10 11:19:51 +01:00 committed by GitHub
commit dcc05f4ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ func (dimensions *PhotoDimensions) ThumbnailScale() PhotoDimensions {
height = 1024
}
if width > dimensions.Width {
width = dimensions.Width
height = dimensions.Height
}
return PhotoDimensions{
Width: width,
Height: height,