Contains utility functions for Blob objects.
| Function |
Description |
| blobToArrayBuffer |
Converts a Blob object to an ArrayBuffer. |
| blobToDataUrl |
Converts a Blob object to a data URL. |
| blobToJpegArrayBuffer |
Converts a Blob object to a JPEG ArrayBuffer with the specified quality. The conversion is a canvas re-encode, which keeps only the pixels — EXIF, GPS, XMP and the ICC profile are dropped by construction. Pass BlobToJpegArrayBufferOptions.shouldPreserveMetadata to carry those segments across from the source, which works only when the source is itself a JPEG: nothing else stores them in a form that can be copied verbatim. |
| dataUrlToArrayBuffer |
Converts a base64 encoded string to an ArrayBuffer. |
| isImageFile |
Checks if a given file is an image. |