@jugar/html-shot
v0.0.2
Published
Make Image By HTML Element.
Downloads
9
Readme
html-shot
Make Image By HTML Element
安装
npm install @jugar/html-shot
截图返回URL
import { videoShot } from '@jugar/html-shot'
const url = videoShot('streamingVideo')
截图返回URL(图片压缩)
import { videoShot } from '@jugar/html-shot'
// 缩小五倍
const url = videoShot('streamingVideo', 0.2)
截图下载
import { downloadImage, videoShot } from '@jugar/html-shot'
const url = videoShot('streamingVideo')
downloadImage(url)