1
Fork 0

Limit thumbnail size of small original photo

This commit is contained in:
WindLi001 2023-02-10 12:53:25 +08:00
parent 1795ff13be
commit 0ac38e6605
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,