mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
fmt edit.
This commit is contained in:
parent
2410295ad4
commit
e9840a9579
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user