package main
import (
"github.com/fishtailstudio/imgo"
)
func main() {
imgo.Load("gopher.png").
Grayscale().
Save("out.png")
}
package main
import (
"github.com/fishtailstudio/imgo"
)
func main() {
imgo.Load("gopher.png").
Grayscale().
Resize(100, 0).
Save("out.png")
}
package main
import (
"github.com/fishtailstudio/imgo"
"golang.org/x/image/colornames"
)
func main() {
gopher := imgo.Load("gopher.png").Grayscale()
imgo.Canvas(300, 300, colornames.Blueviolet).
Insert(gopher, 50, 50).
Save("out.png")
}