tsayen / dom-to-image

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

Save SVG image to folder issue #364

Open faisalfaisi91 opened 3 years ago

faisalfaisi91 commented 3 years ago

Use case: description, code

jsfiddle

Expected behavior

Using domtoimage.SVG() function, image preview is working fine in the modal popup, but when I tried to pass dataURL to my ajax function, it is not working as expected. I'm unable to save that image into project folder. I'm using PHP.

Working fine with domtoimage.PNG(), but the issue with png is that, the final result is blurry. Is there any solution available to save the png image in high resolution with domtoimage.PNG()?

Attached is the screencast of the issue for better understanding.

Thanks

Actual behavior (stack traces, console logs etc)

Library version

Browsers

https://www.loom.com/share/9275680893964175a84e851e2d7139a4