Html2canvas: Canvas is blurry

Created on 14 Feb 2014  Â·  19Comments  Â·  Source: niklasvh/html2canvas

Using the latest version I get blurred canvasses – tried this across chrome, firefox and safari all with the same result. Previously using 0.3.4 this happened sometimes but only (i think) with relatively positioned target elements (eg. if

screen shot 2014-02-15 at 11 38 34 am

All 19 comments

Browser/System?
Is 32bit or 64bit?

Chrome

Version 32.0.1700.107

Safari

Version 7.0.1 (9537.73.11)

Firefox

27.0

System – 64bit I think...
Mac OS X 10.9.1
MacBook Pro
Retina, 13-inch, Late 2012
Processor 2.9 GHz Intel Core i7
Memory 8 GB 1600 MHz DDR3
Graphics Intel HD Graphics 4000 1024 MB

Our now you said I'm blind, LOL.

I have an old mac, I'll try to test firefox.

not used to the markdown. sorry about massive font

I think it may possibly be a retina issue. I tried the same tests on an older macbook and they looked fine.

Any news on this? I started getting blurred canvas as well. No version change for the past months (I'm on 0.4.1).

Yes, I'm using 0.4.1 and I also get the blurred canvas. Both in FF and in Chrome on windows.

I bet that something else changed on the browsers... It's really anoying because it was working perfectly fine a few weeks ago. Or maybe it's something else...

Are you on retina?

Not really, I'm not running a mac. Just a regular desktop with a 1080p monitor attached. I'm using Windows 8 but I tested it on Windows 7 and the same thing happened.

I'm not running a mac either.
Windows 7

Chrome: Version 32.0.1700.107 m
Firefox: Version 27.0.1

Same issue

Ignoring the retina issue, the blurring has been resolved for me (in latest and earlier) versions by only targeting absolutely positioned elements. (abs pos container - relative within that seems ok.) Currently working fine within that limitation (I clone the div I need and reposition to abs 0,0 then get the canvas.)

On 25/02/2014, at 6:42, "jeffrey n. carre" [email protected] wrote:

Same issue

—
Reply to this email directly or view it on GitHub.

Yes it is definitely less burry.

Hi,

I had same result when trying to render a bootstrap dialog content, i found that the crop functionnality provider by canvas is faulty when you use float value for left/top crop start.

So i fully render my page with html2canvas then crop my elements providing int value.

you can see result in this jsfiddle so you can update your crop method

http://jsfiddle.net/onclebob/e4rfszpL/12/

I was able to reconstruct the bug - the result is being blurry if you crop the rendered result and not provide integer values for the cropping; so its not a fault of html2canvas.

@luckystairs can you confirm that?

+1 blurry on retina

For those having the issue with retina displays, see my answer in #390

Fixed in 1.0.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Prabhat2404 picture Prabhat2404  Â·  36Comments

amine86 picture amine86  Â·  22Comments

trongdau184 picture trongdau184  Â·  64Comments

DanielSBelo picture DanielSBelo  Â·  51Comments

Mallander picture Mallander  Â·  23Comments