jimp-dev / jimp-dev/jimp

Cannot rotate image just created.

Open
#953 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

Hello! I'm trying to Rotate an image just created with `new Jimp()`, but when i try to rotate it, it doesn't works and resets also the size of that image.

I've tried with this code:
```
const myImage = new Jimp( width, height, '#FF0000', function(err,image) {
image.rotate(90);
return image;
})
```

and with this:
```
const myImage = new Jimp( width, height, '#FF0000', function(err,image) {
return image;
})
myImage.rotate(50)
```

and then i have:
`await myImage.writeAsync(path)`

But it doesn't work, it does not rotate the image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.