Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/egoist/dom-to-image-retina

dom-to-image but generates high-resolution images
https://github.com/egoist/dom-to-image-retina

Last synced: 17 days ago
JSON representation

dom-to-image but generates high-resolution images

Awesome Lists containing this project

README

        

# dom-to-image-retina

[![npm version](https://badgen.net/npm/v/dom-to-image-retina)](https://npm.im/dom-to-image-retina)

This combines [dom-to-image-chrome-fix-retina](https://npm.im/dom-to-image-chrome-fix-retina) and [changedpi](https://www.npmjs.com/package/changedpi).

## Usage

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