Html2canvas: Canvas rendered initialized with 1.5 scale

Created on 10 Feb 2018  路  2Comments  路  Source: niklasvh/html2canvas

Hello,
I used succesfully html2canvas but suddenly it scales my canvas at 1.5 and I do not know why because I did not specify this. I just want a normal render. So when I use Inspect tool on Chrome it shows me the message below. I do not want any scale.

148ms html2canvas: Canvas renderer initialized (1512x1133 at 943.1469116210938,323.84869384765625) with scale 1.5

Specifications:

  • html2canvas version tested with: 1.0.0-alpha.9
  • Browser & version: Chrome
  • Operating system: Windows 10

Most helpful comment

I believe that's because the default render scale is your device pixel ratio, which in your case seems to be 1.5. you can pass in {scale: 1} in the config

All 2 comments

I believe that's because the default render scale is your device pixel ratio, which in your case seems to be 1.5. you can pass in {scale: 1} in the config

Exactly what jamespantalones said.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

diego-rey picture diego-rey  路  3Comments

yasergh picture yasergh  路  5Comments

arzyu picture arzyu  路  3Comments

bishwapoudel picture bishwapoudel  路  4Comments

anthonymejia picture anthonymejia  路  4Comments