styled-qr-code
styled-qr-code copied to clipboard
Image excavate with wrong orientation
Hey, I'm having an issue:
import { QRCodeCanvas } from "@loskir/styled-qr-code-node";
import fs from "fs";
const qrCode = new QRCodeCanvas({
width: 300,
height: 300,
data: "https://www.facebook.com/",
image: "https://qr-code-styling.com/0b3922d9d1e466270a79706c08c4a57c.png",
dotsOptions: {
color: "#4267b2",
type: "rounded",
},
backgroundOptions: {
color: "#e9ebee",
},
imageOptions: {
hideBackgroundDots: true,
imageSize: 0.4,
crossOrigin: "anonymous",
margin: 0,
},
});
(async () => {
await qrCode.toFile("qr-code.png", "png");
})();