jbilcke-hf's picture
jbilcke-hf HF staff
initial commit 🎬
2cae2a9
raw
history blame
192 Bytes
import { addBase64Header } from "../base64/addBase64.mts";
export async function blobToWebp(blob: Blob) {
return addBase64Header(Buffer.from(await blob.text()).toString('base64'), "webp")
}