Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/egoist/dom-to-image-retina
- Owner: egoist
- License: mit
- Created: 2021-02-18T08:04:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-25T14:44:29.000Z (almost 3 years ago)
- Last Synced: 2024-10-04T11:58:14.485Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 23.4 KB
- Stars: 61
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - dom-to-image-retina - to-image but generates high-resolution images | egoist | 54 | (TypeScript)
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.