What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-02-13 12:10:05
dom-to-image bad quality
const scale = 2; const image = await toPng(elm, { height: elm.offsetHeight * scale, style: { transform: `scale(${scale}) translate(${elm.offsetWidth / 2 / scale}px, ${elm.offsetHeight / 2 / scale}px)` }, width: elm.offsetWidth * scale }); Add solution
Best helpers
Ranking is empty