Comments (4)
div is cleaner, as the divs are calculated to be pixel perfect. That results in a smaller size than you request. For the canvas method the desired size is used, therefor the image might be blurred a bit.
from jquery-qrcode.
I understand how canvas behaves right now, what I would like is that we could set a flag so canvas won't blur anything. Just as Photoshop's nearest neighbor, vs bicubic.
image-rendering:-webkit-optimize-contrast;
http://msdn.microsoft.com/en-us/library/ms530822(VS.85).aspx
http://phrogz.net/tmp/canvas_image_zoom.html
from jquery-qrcode.
or, is there a way to render it as SVG
from jquery-qrcode.
@glitchtracker it's not about scaling but about hitting subpixel values through the calculation
have a look here for example:
http://www.rgraph.net/docs/howto-get-crisp-lines-with-no-antialias.html
from jquery-qrcode.
Related Issues (20)
- Looking to just use an existing image for the image option HOT 4
- Not available on bower anymore HOT 2
- Main bower filename mistake HOT 1
- Not support AMD Specification HOT 1
- GS1 qrcode specification HOT 1
- Rgb/rgba values for colours break img check HOT 2
- Can't Make It Working! HOT 1
- With kjua available, will you still maintain this lib? HOT 1
- Tainted canvases may not be exported HOT 1
- 2 HOT 1
- The web browser said that "Cannot read property 'naturalWidth' of null" ! HOT 1
- Render mode text HOT 1
- default transparent background not suitable for high-contrast display settings HOT 1
- Destroy instance of QR HOT 1
- please publish to jsdelivr.com HOT 1
- Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state. HOT 1
- Image box is not working with SVG HOT 1
- Corners color
- Inkonsistentes Verhalten
- Change Content
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-qrcode.