LoadFromBase64
通过图像的 Base64 编码字符串读取图像。
参数
参数名
类型
说明
base64Str
string
Base64 编码的图像字符串
返回值
*imgo.Image
类型的实例。
例子
package main
import (
"github.com/fishtailstudio/imgo"
)
func main() {
base64Img := imgo.Load("gopher.png").ToBase64()
imgo.Load(base64Img).Save("out.png")
}
最后更新于