LoadFromBase64

Read a image from Base64 encoded string of a image.

Parameters

ParameterTypeDescription

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")
}

Last updated