tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.21k stars 1.68k forks source link

Error while converting dom to image #478

Open ImVk8686 opened 2 months ago

ImVk8686 commented 2 months ago

Use case: i was trying to convert node html to image but we are using facing issue while reading an external css ruleset and it was going into exception , how to avoid this as u know chrome didnt allow script , link to download of different origin i tried making my link style sheet tag setting as crossorigin as anonymous, but it still didnt worked

jsfiddle

Expected behavior : it should download that into blob

Actual behavior : its going to error exception and not downloading anything

Library version

Browsers

forever0714yuan commented 2 months ago

你好,我已收到你的来信。辛苦了!!