|
|
hace 3 meses | |
|---|---|---|
| .. | ||
| es | hace 3 meses | |
| src | hace 3 meses | |
| test | hace 3 meses | |
| CHANGELOG.md | hace 3 meses | |
| LICENSE | hace 3 meses | |
| README.md | hace 3 meses | |
| index.d.ts | hace 3 meses | |
| package.json | hace 3 meses | |
Flip the image horizontally or vertically. Defaults to horizontal.
Also aliased as mirror
@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.flip();
image.mirror();
image.flip(false, true);
}
main();