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

Crop image #284

Closed
lars-reimann opened this issue May 5, 2023 · 0 comments · Fixed by #365
Closed

Crop image #284

lars-reimann opened this issue May 5, 2023 · 0 comments · Fixed by #365
Assignees
Labels
enhancement 💡 New feature or request released Included in a release

Comments

@lars-reimann
Copy link
Member

lars-reimann commented May 5, 2023

Is your feature request related to a problem?

Cropping is a common transformation on images.

Desired solution

  • Add a new method crop to Image that takes four parameters
    • x - the x coordinate of the top-left corner of the bounding rectangle
    • y - the y coordinate of the top-left corner of the bounding rectangle
    • width - the width of the bounding rectangle
    • height - the height of the bounding rectangle
  • The method should return the cropped image but leave the original unchanged

As usual in image processing, the origin of the coordinate system should be the top-left corner of the image. The x-axis should increase to the right and the y-axis should go down.

Raise an error, if the bounding rectangle is not contained in the image.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

No response

@lars-reimann lars-reimann added the enhancement 💡 New feature or request label May 5, 2023
@github-project-automation github-project-automation bot moved this to Backlog in Library May 5, 2023
@daniaHu daniaHu moved this from Backlog to Todo in Library Jun 16, 2023
@PhilipGutberlet PhilipGutberlet moved this from Todo to In Progress in Library Jun 16, 2023
@sibre28 sibre28 linked a pull request Jun 16, 2023 that will close this issue
@PhilipGutberlet PhilipGutberlet moved this from In Progress to Ready for Review in Library Jun 16, 2023
@github-project-automation github-project-automation bot moved this from Ready for Review to ✔️ Done in Library Jun 16, 2023
@lars-reimann lars-reimann added the released Included in a release label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 💡 New feature or request released Included in a release
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants