# pictool
**Repository Path**: chenshenhai/pictool
## Basic Information
- **Project Name**: pictool
- **Description**: A front-end image processing gadget
- **Primary Language**: TypeScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2021-02-18
- **Last Updated**: 2021-05-25
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Pictool
## A front-end image processing gadget
[](https://travis-ci.com/chenshenhai/pictool)
[](./LICENSE)
[](https://www.npmjs.com/package/pictool)

> Examples of online use
[https://chenshenhai.github.io/pictool/example/module/pictool-ui.html](https://chenshenhai.github.io/pictool/example/module/pictool-ui.html)
## Installation
### Prerequisites
- Operating System: Windows,macOS,Linux
- Node.js Runtime: `12.3+`
### NPM Usage
```sh
npm i --save pictool
```
```js
import Pictool from 'pictool';
```
or
```js
import PictoolBrowser from 'pictool/dist/browser';
import PictoolUI from 'pictool/dist/ui';
import PictoolDigit from 'pictool/dist/digit';
```
### CDN Usage
```html
```
or
```html
```
## Getting started
### JavaScript Code
```js
import Pictool from 'pictool';
const src = './image/test.jpg';
const Sandbox = Pictool.browser.Sandbox;
const sandbox = new Sandbox(src);
const dom = document.querySelector('#J_Example_01');
sandbox.queueProcess([
{
process: 'sobel',
options: {},
},
{
process: 'invert',
options: {},
}
]).then(function(base64) {
dom.innerHTML = ``;
}).catch(function(err) {
console.log(err);
});
```
### HTML Code
```html