magic-erase-console
v0.0.2
Published
A simple web console application for the magic-erase package
Maintainers
Readme
A simple web console application to demostrate the magic-erase package. Clear blurry background in close-focused images, by selecting click-points on the image. Works like the magic-wand tool in Photoshopp.
Installation
npm i magic-erase-console --save-dev
Usage
In package.json:
{
"scripts": {
"console": "magic-erase-console"
}
}Then run:
npm run consoleAdd images [Optional]
This web console comes with a few sample images out of the box. If you need to add your own, for now, you can use the following steps:
- Put your image file (jpg) in the directory
<project-root>/node_modules/magic-erase-console/img - Add your image information in the configuration file
<project-root>/node_modules/magic-erase-console/dist/data/options.jsonwith the following attributes:idis a unique string and must be different from the others in the configuration file.nameis the displayed name of your image.srcis the file name of your image, e.g.myImage.jpg. DO NOT include the path of the image.sensitivityis the default sensitivity of your image. It MUST be set between 0.1 to 100.
Caution
- Bigger images will take longer time.
