|
|
hai 3 meses | |
|---|---|---|
| .. | ||
| es | hai 3 meses | |
| src | hai 3 meses | |
| test | hai 3 meses | |
| CHANGELOG.md | hai 3 meses | |
| LICENSE | hai 3 meses | |
| README.md | hai 3 meses | |
| babel.config.js | hai 3 meses | |
| index.d.ts | hai 3 meses | |
| package.json | hai 3 meses | |
This is useful as a simplified method for processing scanned drawings, signatures, etc
@param {function(Error, Jimp)} cb (optional) a callback for when complete
import jimp from 'jimp';
async function main() {
const image = await jimp.read('test/image.png');
image.threshold({ max: 150 });
// or
image.threshold({ max: 200, replace: 200, autoGreyscale: false });
}
main();