Fix image quality

This commit is contained in:
jack77213 2020-03-02 20:09:20 +08:00
parent 3225640d7d
commit d28c903b10
Signed by: jack77213
GPG Key ID: CA81AA7BB873B9F1
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func corpImage(img image.Image, width int, level int, dirname string) {
if err != nil {
panic(err)
}
jpeg.Encode(fileOut, imgOut, &jpeg.Options{})
jpeg.Encode(fileOut, imgOut, &jpeg.Options{Quality: 85})
fileOut.Close()
wg.Done()
}(&wg, i, j, img)