dom-to-image
dom-to-image copied to clipboard
Download with Jpeg not working
Use case: description, code
Downloading a dom with Jpeg not working properly, works properly on firefox but not on the other major browsers
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:
Actual behavior (stack traces, console logs etc)
but downloads with just the text but not the background in it
Library version
^2.6.0
Browsers
- [x] Chrome 49+
- [x] Firefox 45+
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?