(base64, format = "png", width, height)
| 18 | * @returns {string} generated filename (e.g. "__embedded_0.png") |
| 19 | */ |
| 20 | export function cacheEmbeddedImage(base64, format = "png", width, height) { |
| 21 | const name = `__embedded_${embeddedImageId++}`; |
| 22 | imgList[name] = decodeBase64Image(base64, format, width, height); |
| 23 | return `${name}.${format}`; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * If the given data object has an embedded base64 image (JSON `imagedata` |
no test coverage detected