tsayen / dom-to-image

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

SVG image generated is not scalable with different resolutions #156

Open Krishna2309 opened 7 years ago

Krishna2309 commented 7 years ago

Use case: description, code

jsfiddle We have used toSvg() for getting data uri and created blob object using that. Then used FileSaver.js for exporting that file. Then we tried to open the downloaded file in different resolution systems. Sample resolution: 1920x1080

Expected behavior

should open the file seamlessly in all resolutions.

Actual behavior (stack traces, console logs etc)

The image is not appearing completely in different resolutions. For some specific resolution it works.

Library version

2.5.2

Browsers

Chrome

Document1.docx untitled (10).zip