Skip to content
New issue

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

Capture not expanding when element uses CSS "zoom" #732

Mallander opened this issue Nov 17, 2015 · 4 comments

Capture not expanding when element uses CSS "zoom" #732

Mallander opened this issue Nov 17, 2015 · 4 comments


Copy link

@Mallander Mallander commented Nov 17, 2015

I have a tool using HTML 2 Canvas which also utilizes CSS "zoom" to allow for larger areas to be drawn/printed - however for some reason the capture area of HTML 2 Canvas does not change when zooming out in the div.

You can test this for yourself here: (Zoom out 1-2 levels and draw a grid in the main area - the capture area for HTML 2 Canvas keeps to a very small area

Is there a possible fix/change for this?

Copy link

@Dayjo Dayjo commented Feb 24, 2016

I have this issue too.

I was wondering about whether it should remove the zoom property on the element first, then scale it down the appropriate amount within the canvas. Potentially this would make a good option as you may want the canvas image to be the same size of the rendered 'zoomed' version of the content.

Certain elements seem to be totally missed out of an element with the zoom property.

Copy link

@EWhite613 EWhite613 commented Jun 10, 2016

Made a quick JSFiddle to showcase this issue.

@niklasvh niklasvh added the Feature label Dec 12, 2017
Copy link

@niklasvh niklasvh commented Dec 12, 2017

Updated example for 1.0.0

Copy link

@harshini66 harshini66 commented Dec 20, 2018

how to scale canvas.. i got only blurry canvas.. How can i overcome this? is there any syntax in html2canvas for getting higher resolution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Awaiting triage
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants