fogleman / gg

Go Graphics - 2D rendering in Go with a simple API.
https://godoc.org/github.com/fogleman/gg
MIT License
4.43k stars 357 forks source link

Add SaveJPG method #70

Closed bevand10 closed 5 years ago

bevand10 commented 5 years ago

Add the recently-added SaveJPG utility function to the context, enabling

dc := gg.NewContext(1, 1)

dc.SaveJPG('1px.jpg', 90)