LoadFromUrl
Last updated
Last updated
Load an image from a image URL. It is recommended to use the Load method to load an image.
url
string
Image URL.
The instance of *imgo.Image
.
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")
}