|
пре 2 месеци | |
---|---|---|
.. | ||
es | пре 2 месеци | |
src | пре 2 месеци | |
test | пре 2 месеци | |
CHANGELOG.md | пре 2 месеци | |
LICENSE | пре 2 месеци | |
README.md | пре 2 месеци | |
index.d.ts | пре 2 месеци | |
package.json | пре 2 месеци |
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();