LoadFromBase64
Read a image from Base64 encoded string of a image.

Parameters

Parameter
Type
Description
base64Str
string
Base64 encoded string of a image.

Return Values

The instance of *imgo.Image .

Examples

package main
​
import (
"github.com/fishtailstudio/imgo"
)
​
func main() {
base64Img := imgo.Load("gopher.png").ToBase64()
imgo.Load(base64Img).Save("out.png")
}
Copy link
On this page
Parameters
Return Values
Examples