Coder Social home page Coder Social logo

loskir / styled-qr-code Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kilianb/styled-qr-code

33.0 33.0 19.0 1.15 MB

Automaticly generate your styled QR code in your web app.

Home Page: https://qr-code-styling.com

License: MIT License

JavaScript 6.35% TypeScript 93.65%

styled-qr-code's People

Contributors

dd-jonas avatar dependabot[bot] avatar justraman avatar kilianb avatar knom avatar kozakdenys avatar loskir avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

styled-qr-code's Issues

Issues when embedding SVG images in center

I have an issues when referencing SVG images for embedding in the center like:

image: "https://upload.wikimedia.org/wikipedia/commons/f/f5/History_Logo.svg",

Then I get the following error:

      else onerror(new Error("Could not decode image data"))
                   ^

Error: Could not decode image data
at C:\Development\Node.js - QR API\node_modules\skia-canvas\lib\index.js:880:24
at C:\Development\Node.js - QR API\node_modules\skia-canvas\node_modules\simple-get\index.js:98:7
at PassThrough. (C:\Development\Node.js - QR API\node_modules\simple-concat\index.js:8:13)
at Object.onceWrapper (node:events:632:28)
at PassThrough.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v20.12.2

I am using VS Code - and test in the terminal - it works with PNG logo files.

`fs` module not found

Hey, I have been working on this project it uses

  • next.js
  • node version 18.16.1

I have been getting this issue.
Screenshot from 2023-08-20 21-45-00

Only on just importing.
import { QRCodeCanvas } from "@loskir/styled-qr-code-node";

Image excavate with wrong orientation

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

Cannot find module './v6' from 'node_modules/skia-canvas/lib/index.js'

Firstly, thank you for developing this, it seems like a lot of noise to get this working in Node, so, thanks for contributing to the open source community.

When I installed this and run it, I am getting this error

Cannot find module './v6' from 'node_modules/skia-canvas/lib/index.js'

   Require stack:
     node_modules/skia-canvas/lib/index.js
     node_modules/@loskir/styled-qr-code-node/dist/index.js
     src/modules/qrcodes/qrcode.service.ts
import { QRCodeCanvas } from "@loskir/styled-qr-code-node";
const qrCode = new QRCodeCanvas({
				data: "https://example.com",
			});

Node: v19.0.0
NPM: 9.4.2

Please advise on what else you would need to help.

Thank you in advanced.

`GLIBC_2.27' not found

Trying to upload Next.js app to Vercel. I'm getting this error:

Error: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /vercel/path0/node_modules/skia-canvas/lib/v6/index.node)
22:17:07.555

I tried to change node versions, 16 and 18 and it still doesn't work. Is there anything we can do?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.