Closed LoganArnett closed 5 years ago
If you have a base64-encoded image data as a string, you can use Decode
instead. e.g.:
img, err := imaging.Decode(base64.NewDecoder(base64.StdEncoding, strings.NewReader(data)))
Wow, yep, totally overlooked that, thanks @disintegration my bad
Awesome go package by the way 👍
Am I able to use the
Open
method on a base64 string directly instead of a file? I am trying to use this in an AWS Lambda and trying to see if I can avoid even creating temporary files