Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix rotate method #49: use max dimension #53

Merged
merged 1 commit into from
Oct 29, 2015

Conversation

speediro
Copy link

@oliver-moran, this should do it. Can you review?

@@ -1204,7 +1204,7 @@ function advancedRotate(deg, resize) {
this.bitmap.data.writeUInt32BE(this._background, idx);
});

var max = (this.bitmap.width > this.bitmap.height) ? this.bitmap.width : this.bitmap.height;
var max= Math.max(w,h,this.bitmap.width,this.bitmap.height)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

oliver-moran added a commit that referenced this pull request Oct 29, 2015
Bug fix rotate method #49: use max dimension
@oliver-moran oliver-moran merged commit 59887ad into jimp-dev:master Oct 29, 2015
@oliver-moran
Copy link
Collaborator

Thanks, @speediro and sorry for being silent for two weeks. I'll do some tests and publish over the weekend.

@oliver-moran
Copy link
Collaborator

Released to NPM just now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants