mirror of
https://github.com/fishtailstudio/imgo
synced 2025-09-26 20:41:47 +08:00
16 lines
229 B
Go
16 lines
229 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/fishtailstudio/imgo"
|
|
)
|
|
|
|
func main() {
|
|
err := imgo.Load("gopher.jpg").Save("out.png").Error
|
|
if err != nil {
|
|
fmt.Println("error:", err.Error())
|
|
} else {
|
|
fmt.Println("success")
|
|
}
|
|
}
|