Last updated 3 years ago
Return a Base64 encoded string in PNG format for the image.
None
string
In the above example, the base64Imgstring is data:image/png;base64,......
base64Img
data:image/png;base64,......
package main import ( "github.com/fishtailstudio/imgo" ) func main() { base64Img := imgo.Load("gopher.png").ToBase64() }