Add "Hold Uploads" option to configuration

This commit is contained in:
2021-11-07 13:43:25 +10:30
parent 1228920004
commit ced209a7db
4 changed files with 17 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ func (ip *Processor) ThumbPNG(ul *upload.Upload, w io.Writer) error {
}
newXY := image.Point{}
// test width
if im.Bounds().Max.X/thumbnailMaxX > im.Bounds().Max.Y/thumbnailMaxY {
newXY.X = thumbnailMaxX
newXY.Y = im.Bounds().Max.Y / (im.Bounds().Max.X / thumbnailMaxX)