kozakdenys / qr-code-styling

Automaticly generate your styled QR code in your web app.
https://qr-code-styling.com
MIT License
1.55k stars 495 forks source link

File specs for the logo? #58

Open diegomejia818 opened 3 years ago

diegomejia818 commented 3 years ago

I tried several logos, and they just didn't work. No output, no errors. The svg example works every time. Not the other. type: "png", image:"https://facebookbrand.com/wp-content/uploads/2019/04/f_logo_RGB-Hex-Blue_512.png" ... type: "png", image:"https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png"

Are there defined specifications for the image files?

kozakdenys commented 3 years ago

Hi @diegomejia818 The type option has two possible values: 'svg' or 'canvas', it is a rendering type. Could you please send the full options object? I want to debug it.

diegomejia818 commented 3 years ago

Sorry for the late reply. Here's the whole thing:

<!DOCTYPE html>

QR Code Styling

On Sat, Jun 5, 2021 at 1:14 AM Denys Kozak @.***> wrote:

Hi @diegomejia818 https://github.com/diegomejia818 The type option has two possible values: 'svg' or 'canvas', it is a rendering type. Could you please send the full options object? I want to debug it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kozakdenys/qr-code-styling/issues/58#issuecomment-855203838, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHC4LGPPSVOZX7INKGXZCY3TRHMFVANCNFSM46DXZUAA .

thanglv206 commented 3 years ago

Hi @diegomejia818 The type option has two possible values: 'svg' or 'canvas', it is a rendering type. Could you please send the full options object? I want to debug it.

i also get this issue. image type svg work fine but when i change to png the error notice that cannot access image (cors)

plumber-craic commented 2 years ago

+1 getting cors errors with png, but not jpg from my s3 bucket. Is there a fix?