- Notifications
You must be signed in to change notification settings - Fork72
JavaScript implementation of a screenshot with html2canvas.js and canvas2image.js(js实现屏幕截图)
License
NotificationsYou must be signed in to change notification settings
usecodelee/JavaScript-screenshot
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
JavaScript implementation screenshot,There are two libraries used:
I mainly made two demos and one NPM package:
Open
index.htmldirectly in your browser.
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build# build for production and view the bundle analyzer reportnpm run build --report
The original html is like this:
This is the element node:
This is after converting to canvas:
This is the element node:
This is after converting to img:
This is the element node:
This is the final result:
npm install --save js_screen_shots
For details, see the documentREADME.md.
About
JavaScript implementation of a screenshot with html2canvas.js and canvas2image.js(js实现屏幕截图)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.






