dom-to-image icon indicating copy to clipboard operation
dom-to-image copied to clipboard

Download with Jpeg not working

Open Dun-sin opened this issue 2 years ago • 3 comments

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

Actual behavior (stack traces, console logs etc)

but downloads with just the text but not the background in it pic-text

Library version

^2.6.0

Browsers

  • [x] Chrome 49+
  • [x] Firefox 45+

Dun-sin avatar Jul 23 '22 09:07 Dun-sin

i meet the same case

cloud-prg avatar Nov 10 '22 10:11 cloud-prg

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 Screenshot 2023-01-07 013122

Did you find another package to use too?

Jeffreyon avatar Jan 07 '23 00:01 Jeffreyon