LoadFromUrl
Load an image from a image URL. It is recommended to use the Load method to load an image.
Parameters
Parameter
Type
Description
url
string
Image URL.
Return Values
The instance of *imgo.Image
.
Examples
package main
import (
"github.com/fishtailstudio/imgo"
)
func main() {
url := "https://www.baidu.com/img/flexible/logo/pc/result.png"
imgo.LoadFromUrl(url).
Save("out.png")
}
Last updated