LoadFromPath

Load an image from file path. It is recommended to use the Load method to load an image.

Parameters

ParameterTypeDescription

path

string

Path of the image in filesystem.

Return Values

The instance of *imgo.Image .

Examples

package main

import (
    "github.com/fishtailstudio/imgo"
)

func main() {
    imgo.LoadFromPath("gopher.png").
        Save("out.png")
}

Last updated