tsayen / dom-to-image

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

Support for image rescaling (image-rendering CSS property) ? #276

Open epietrig opened 5 years ago

epietrig commented 5 years ago

Use case: description, code

domtoimage.toPng(node, {height: 24, style:{"image-rendering": "crisp-edges"}}).then(...)

Expected behavior

Should render crisp images in the dom-to-image version that lie below the original rendering in the screenshot.

Actual behavior (stack traces, console logs etc)

htmlvsdom-to-img

Library version

10-06-2017

Browsers