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

Simplify and fix flip #879

Merged
merged 2 commits into from
Apr 20, 2020
Merged

Simplify and fix flip #879

merged 2 commits into from
Apr 20, 2020

Conversation

skalee
Copy link
Contributor

@skalee skalee commented Apr 20, 2020

What's Changing and Why

  • Tests for Flip plugin are added.
  • A code branch in Flip plugin is removed, as it was broken and unnecessary.

In the result of the latter:

  • Computational complexity is the same or better.
  • Flip plugin no longer depends on Rotate plugin.
  • Implementation is simpler, shorter and has less bugs.

What else might be affected

Fixes #829. API is unaffected.

Tasks

  • Add tests
  • Update Documentation — does not apply
  • Update jimp.d.ts — I suppose irrelevant, as the API is unaffected
  • Add SemVer Label

Removing this unnecessary "shortcut":

- Has no bad effect on complexity
- Removes dependency on Rotate plugin
- Fixes jimp-dev#829
- Actually shortens and simplifies the implementation
@skalee skalee changed the title Fix flip Simplify and fix flip Apr 20, 2020
Copy link
Member

@crutchcorn crutchcorn left a comment

Choose a reason for hiding this comment

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

Love the tests on this one! Great work!

@hipstersmoothie hipstersmoothie added the patch Increment the patch version when merged label Apr 20, 2020
@hipstersmoothie hipstersmoothie merged commit e93497a into jimp-dev:master Apr 20, 2020
@hipstersmoothie
Copy link
Collaborator

🚀 PR was released in v0.10.3 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flip / Mirror with BOTH vertical and horizontal parameters as true adds margin to image bounds
3 participants