The project simplifies the task of converting images loaded from a browser to the Base64 format.
Install with yarn:
yarn add @requrv/image-to-base64Install with npm:
npm install @requrv/image-to-base64import { convertImage } from '@requrv/image-to-base64'
async function convert(file: File) {
return await convertImage(file)
}