Pictool
A front-end image processing gadget
Examples of online use
https://chenshenhai.github.io/pictool/example/module/pictool-ui.html
Installation
Prerequisites
- Operating System: Windows,macOS,Linux
- Node.js Runtime:
12.3+
NPM Usage
npm i --save pictool
;
or
;;;
CDN Usage
or
Getting started
JavaScript Code
; const src = './image/test.jpg';const Sandbox = PictoolbrowserSandbox;const sandbox = src;const dom = document; sandbox;
HTML Code
Browser Result
Features
- ✔︎ Brightness
- ✔︎ Hue
- ✔︎ Saturation
- ✔︎ Alpha
- ✔︎ Invert
- ✔︎ Grayscale
- ✔︎ Sobel
- ✔︎ Sepia
- ✔︎ Posterize
- ✔︎ Gamma
Documentation
- 中文文档
- English Documents //TODO
Example
Please use the latest version of Chrome Browser
请在最新版本 chrome 浏览器下浏览
https://chenshenhai.github.io/pictool/example/index.html
Testing
npm run test