forked from jason/cpolis
Allow uploading a banner image
This commit is contained in:
@ -36,7 +36,7 @@ func SaveImage(c *Config, src io.Reader) (string, error) {
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
if err = webp.Encode(file, img, &webp.Options{Lossless: true}); err != nil {
|
||||
if err = webp.Encode(file, img, &webp.Options{Quality: 80}); err != nil {
|
||||
return "", fmt.Errorf("error encoding image as webp: %v", err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user