dom-to-image-retina

dom-to-image but generates high-resolution images

Usage no npm install needed!

<script type="module">
  import domToImageRetina from 'https://cdn.skypack.dev/dom-to-image-retina';
</script>

README

dom-to-image-retina

This combines dom-to-image-chrome-fix-retina and changedpi.

Usage

import { toPng, toJpeg, toBlob } from "dom-to-image-retina"

const dataUrl = await toPng(el, options)
const dataUrl = await toJpeg(el, options)
const blob = await toBlob(el, options)

License

MIT.