CanHub / Android-Image-Cropper

Image Cropping Library for Android, optimised for Camera / Gallery.

Home Page:https://canhub.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Support for Rounded Rectangle Crop Shape

tasy5kg opened this issue · comments

Currently, the library supports cropping images into rectangles and ovals, as defined by CropShape.

I kindly request the implementation of cropping into rounded rectangles.

Despite the availability of methods like Canvas.drawRoundRect() in the Android SDK, integrating this functionality into CropImageView would streamline the cropped preview view experience.

Thank you sincerely for considering this feature request, and for providing this user-friendly and robust image cropping library for every Android developer.

Isn't rounded rect an oval?

Isn't rounded rect an oval?

I don't think so... maybe I didn't express myself clearly. I want the picture to be cropped into a rectangle with the four corners of the rectangle rounded, like this:

tasy5kg-vIm2dkS73Vo-unsplash_round_rect

Ah I would advise against this and do it on your view layer instead and save the pictures always as a rectangle. You're much more flexible with this.

Thank you, I think you have a point and I agree with you. 🙏