(path string, im image.Image)
| 47 | } |
| 48 | |
| 49 | func SavePNG(path string, im image.Image) error { |
| 50 | file, err := os.Create(path) |
| 51 | if err != nil { |
| 52 | return err |
| 53 | } |
| 54 | defer file.Close() |
| 55 | return png.Encode(file, im) |
| 56 | } |
| 57 | |
| 58 | func SaveJPG(path string, im image.Image, quality int) error { |
| 59 | file, err := os.Create(path) |
no outgoing calls
no test coverage detected
searching dependent graphs…