I wrote this code in app.ts
file:
const image = await qrcode(text);
const imgTag = `<img src="${image}" alt="qrcode" />`;
const encoder = new TextEncoder();
await Deno.writeFile("./qr.html", encoder.encode(imgTag));
the problem its to output it's in an HTML file but I want to convert base 64 images to jpg or png. How to do this?