Merge pull request #798 from WindLi001/limit-thumbnail-size
Limit thumbnail size of small original photo in new branch
This commit is contained in:
commit
dcc05f4ea8
|
@ -48,6 +48,11 @@ func (dimensions *PhotoDimensions) ThumbnailScale() PhotoDimensions {
|
||||||
height = 1024
|
height = 1024
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if width > dimensions.Width {
|
||||||
|
width = dimensions.Width
|
||||||
|
height = dimensions.Height
|
||||||
|
}
|
||||||
|
|
||||||
return PhotoDimensions{
|
return PhotoDimensions{
|
||||||
Width: width,
|
Width: width,
|
||||||
Height: height,
|
Height: height,
|
||||||
|
|
Loading…
Reference in New Issue