Limit thumbnail size of small original photo
This commit is contained in:
parent
1795ff13be
commit
0ac38e6605
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue