Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox and Chrome generation differ #31

Open
obsidianart opened this issue Aug 22, 2016 · 6 comments
Open

Firefox and Chrome generation differ #31

obsidianart opened this issue Aug 22, 2016 · 6 comments

Comments

@obsidianart
Copy link

I'm sorry but generating a fiddle is really hard since this library require imports etc.
The following

        let buffer = qr.imageSync("hello", {
            ec_level: 'H',
            margin: 1,
            type: 'png'
        })

generate 2 different results in firefox and chrome. The problem seems only related fo FF 48 (and 49 beta) on mac.

@alexeyten
Copy link
Owner

This library was never supposed to work in browsers.

@obsidianart
Copy link
Author

I would probably add this information in the readme, it worked great in browser :)

@alexeyten
Copy link
Owner

How did you make it work in browser? Browserify? Webpack? Something else?

@obsidianart
Copy link
Author

Webpack

@alexeyten
Copy link
Owner

What versions of qr-image and pako do you have?

@obsidianart
Copy link
Author

"qr-image": "3.1.0"
pako I don't know, I guess is linked by qr-image

@alexeyten alexeyten added the png label Dec 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants