File size: 192 Bytes
2cae2a9
 
 
 
 
1
2
3
4
5
import { addBase64Header } from "../base64/addBase64.mts";

export async function blobToWebp(blob: Blob) {
  return addBase64Header(Buffer.from(await blob.text()).toString('base64'), "webp")
}