MCPcopy Index your code
hub / github.com/LumaAI-API/Luma-API / readImage

Function readImage

luma.go:228–233  ·  view source on GitHub ↗
(image string)

Source from the content-addressed store, hash-verified

226}
227
228func readImage(image string) (io.Reader, error) {
229 if strings.HasPrefix(image, "data:image/") {
230 return getImageFromBase64(image)
231 }
232 return getImageFromUrl(image)
233}
234
235var (
236 reg = regexp.MustCompile(`data:image/([^;]+);base64,`)

Callers 1

uploadFileFunction · 0.85

Calls 2

getImageFromBase64Function · 0.85
getImageFromUrlFunction · 0.85

Tested by

no test coverage detected