We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
More information: http://stackoverflow.com/questions/14383557/setting-canvas-todataurl-jpg-quality
It would make sense to support both the type (and quality?) parameters instead of only PNG.
Here's a currently workaround until this change is implemented, using JPEG as an example:
var dataUrl = qr.canvas(data).toDataURL('image/jpeg');
The text was updated successfully, but these errors were encountered:
This would be good. The work around gives me this error at the moment.
TypeError: 'undefined' is not an object (evaluating 'c.toUpperCase')
http://jsfiddle.net/koorb/U4TXN/4/
Sorry, something went wrong.
I'm not familiar with the jsPDF library but I think it should work if you change line 39 to the following:
doc.addImage(dataUrl, 'JPEG');
Ah, that was a jsPDF error, sorry. Anyway, can't get it working in jsfiddle but it's fine now in my code. Thanks for the workaround.
drastically simplified async/sync API and fixed #16 by accepting new …
9502cd6
…mime option
neocotic
No branches or pull requests
More information: http://stackoverflow.com/questions/14383557/setting-canvas-todataurl-jpg-quality
It would make sense to support both the type (and quality?) parameters instead of only PNG.
Here's a currently workaround until this change is implemented, using JPEG as an example:
The text was updated successfully, but these errors were encountered: