LoadFromPath
Last updated
Last updated
Load an image from file path. It is recommended to use the Load method to load an image.
path
string
Path of the image in filesystem.
The instance of *imgo.Image
.
package main
import (
"github.com/fishtailstudio/imgo"
)
func main() {
imgo.LoadFromPath("gopher.png").
Save("out.png")
}