|
преди 1 месец | |
---|---|---|
.. | ||
es | преди 1 месец | |
src | преди 1 месец | |
test | преди 1 месец | |
CHANGELOG.md | преди 1 месец | |
LICENSE | преди 1 месец | |
README.md | преди 1 месец | |
index.d.ts | преди 1 месец | |
package.json | преди 1 месец |
Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.
@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.rotate(90);
}
main();