image to convert
maximum width of the image (default: 8192). Images larger than this will be scaled down. This is because strings can get too long.
detach the bitmap after conversion (default: false). This will free up bitmap memory if you don't need it anymore.
mime type of the data url (default: 'image/png')
See also imageUrlToImageData, imageBitmapToCanvas, imageBitmapToBlob
Generated using TypeDoc
Convert an image ImageBitmap or CanvasImageSource to a base64 data url.