I found that setting the canvas size in CSS caused my images to be displayed in a blurry manner.
Try this:
<canvas id="preview" width="640" height="260"></canvas>
as per my post: HTML Blurry Canvas Images
More Related Contents:
- Canvas width and height in HTML5
- Draw on HTML5 Canvas using a mouse
- Html5 canvas drawImage: how to apply antialiasing
- Drawing an SVG file on a HTML5 canvas
- How can I convert an HTML element to a canvas element?
- HTML5 Canvas and Anti-aliasing [duplicate]
- Drawing text to with @font-face does not work at the first time
- Base64 PNG data to HTML5 canvas
- How to draw a rounded rectangle using HTML Canvas?
- What’s the best way to set a single pixel in an HTML5 canvas?
- How to change the opacity (alpha, transparency) of an element in a canvas element?
- How do I make a transparent canvas in html5?
- How to make rooftext effect and valley text effect in HTML5 (or Fabric.js)
- Can you take a “screenshot” of the page using Canvas?
- canvas default size
- Gradient Stroke Along Curve in Canvas
- HTML5 Canvas background image
- HTML5 Canvas slows down with each stroke and clear
- Combining two or more Canvas elements with some sort of blending
- context.getImageData() operation is insecure
- What is the difference between SVG and HTML5 Canvas?
- How can I use custom fonts in an HTML5 Canvas element?
- Subpixel anti-aliased text on HTML5’s canvas element
- Create links in HTML canvas
- Browser Canvas CORS Support for Cross Domain Loaded Image Manipulation
- Draw SVG on HTML5 Canvas with support for font element
- Fast and responsive interactive charts/graphs: SVG, Canvas, other?
- Content Security Policy: “img-src ‘self’ data:”
- “Erasing” in html5 canvas
- HTML5 Canvas and Line Width