Skip to content

Fix: rotate resize param on multiples of 90#1229

Merged
hipstersmoothie merged 1 commit into
jimp-dev:mainfrom
sjoerdthedev:fix-matrix-rotate-not-respecting-no-resize
May 11, 2023
Merged

Fix: rotate resize param on multiples of 90#1229
hipstersmoothie merged 1 commit into
jimp-dev:mainfrom
sjoerdthedev:fix-matrix-rotate-not-respecting-no-resize

Conversation

@sjoerdthedev

Copy link
Copy Markdown
Member

What's Changing and Why

Before #1209 specifying resize=false with rotate() would never resize the image, however the new matrix rotation algo will always resize the image regardless of this parameter. This PR introcudes some more checks to see if matrix rotation can be used and otherwise falls back to using advancedRotate

What else might be affected

Shouldn't affect anything, fixes incorrect behavior.

Tasks

  • Add tests
  • Update Documentation
  • Update jimp.d.ts
  • Add SemVer Label

@hipstersmoothie hipstersmoothie merged commit bc22100 into jimp-dev:main May 11, 2023
@github-actions

Copy link
Copy Markdown
Contributor

🚀 PR was released in v0.22.8 🚀

@github-actions github-actions Bot added the released This issue/pull request has been released. label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants