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.
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