Browse Source

Resolve go vet issues

Martin Hebnes Pedersen 3 years ago
parent
commit
d83676292b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      convert_image.go

+ 1 - 1
convert_image.go

@@ -44,6 +44,6 @@ func convertImage(r io.Reader) ([]byte, error) {
 
 	// Re-encode as low quality jpeg
 	var buf bytes.Buffer
-	err = jpeg.Encode(&buf, img, &jpeg.Options{40})
+	err = jpeg.Encode(&buf, img, &jpeg.Options{Quality: 40})
 	return buf.Bytes(), err
 }