styled-qr-code icon indicating copy to clipboard operation
styled-qr-code copied to clipboard

Image excavate with wrong orientation

Open iquirino opened this issue 1 year ago • 13 comments

Hey, I'm having an issue:

image

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");
})();

iquirino avatar Apr 27 '23 10:04 iquirino