Open Dun-sin opened 1 year ago
i meet the same case
How far @Dun-sin, did you find a way to solve this problem? I'm trying to generate an image from a DOM node and I'm meeting this error
Did you find another package to use too?
How far @Dun-sin, did you find a way to solve this problem? I'm trying to generate an image from a DOM node and I'm meeting this error
Did you find another package to use too?
So I ended up using this, but it had the same issue, but someone just gave a fix for it in this issue, I think they are similar libraries
Use case: description, code
Downloading a dom with Jpeg not working properly, works properly on firefox but not on the other major browsers
Link to live site
outputNode.style.background =
url(${imageSRC}) center no-repeat;
outputNode.style.backgroundSize = 'var(--output-width)';
outputNode.style.backgroundClip = 'text';
outputNode.style.webkitBackgroundClip = 'text';
outputNode.style.webkitTextFillColor = 'rgba(255, 255, 255, 0.1)';
Expected behavior
Meant to download this:![image](https://user-images.githubusercontent.com/78784850/180599808-833483e5-d911-42ec-927d-326adb0a1728.png)
Actual behavior (stack traces, console logs etc)
but downloads with just the text but not the background in it![pic-text](https://user-images.githubusercontent.com/78784850/180599818-aa89e641-fd06-498a-aefd-2d810ff6afe1.jpeg)
Library version
^2.6.0
Browsers