...
|
...
|
@@ -115,7 +115,7 @@ func ResizeImage(fileType, sourcePath, prefix, subfix string, file *multipart.Fi |
|
|
return
|
|
|
}
|
|
|
Rectangle := image.Bounds()
|
|
|
image = imaging.Resize(image, Rectangle.Dx()/3, 0, imaging.Lanczos)
|
|
|
image = imaging.Resize(image, Rectangle.Dx()/2, 0, imaging.Lanczos)
|
|
|
err = imaging.Save(image, filename)
|
|
|
if err != nil {
|
|
|
log.Error(err)
|
...
|
...
|
|