fmt edit.

This commit is contained in:
Miroslav Šedivý 2021-02-25 17:16:01 +01:00
parent 2410295ad4
commit e9840a9579

View File

@ -20,7 +20,7 @@ func CreatePNGImage(img *image.RGBA) ([]byte, error) {
func CreateJPGImage(img *image.RGBA, quality int) ([]byte, error) { func CreateJPGImage(img *image.RGBA, quality int) ([]byte, error) {
out := new(bytes.Buffer) out := new(bytes.Buffer)
err := jpeg.Encode(out, img, &jpeg.Options{ Quality: quality }) err := jpeg.Encode(out, img, &jpeg.Options{Quality: quality})
if err != nil { if err != nil {
return nil, err return nil, err
} }