You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the image some time cutting and add transparent bg in the cutting part
for example : the div 1200px width 1200 height
when downloading image i got correct image
and when refresh the page i got the image 1200px width 1200 height but it cutting and the cutting part is transparent
like the images
Expected behavior
the image without cutting
Actual behavior (stack traces, console logs etc)
Library version
10-06-2017
Browsers
Chrome Version 119.0.6045.124
Firefox 119.0.1
The text was updated successfully, but these errors were encountered:
I had a similar issue, here's what i did to fix it. (this may not be the case for you though)
the element I was trying to screenshot had margins around it, which I believe was confusing the library.
what I did was I removed the margin css from this element, then wrapped it in a new div with the margin css.
this kept the rendered dom looking exactly the same, yet the element that needed to be screenshotted was exactly the size it needed to be with no extra margins (as viewed by the DevTools thing that highlights margins)
this issue is kind of old so you may have solved the problem already, but if you haven't, try this. :)
Use case: description, code
the image some time cutting and add transparent bg in the cutting part
for example : the div 1200px width 1200 height
when downloading image i got correct image
and when refresh the page i got the image 1200px width 1200 height but it cutting and the cutting part is transparent
like the images
Expected behavior
the image without cutting
Actual behavior (stack traces, console logs etc)
Library version
10-06-2017
Browsers
The text was updated successfully, but these errors were encountered: