|
hace 2 meses | |
---|---|---|
.. | ||
es | hace 2 meses | |
src | hace 2 meses | |
test | hace 2 meses | |
CHANGELOG.md | hace 2 meses | |
LICENSE | hace 2 meses | |
README.md | hace 2 meses | |
babel.config.js | hace 2 meses | |
index.d.ts | hace 2 meses | |
package.json | hace 2 meses |
@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.shadow();
// or
image.shadow({ opacity: 0.8, size: 1.2, blur: 10, x: -75, y: -75 });
}
main();