Couldn't get the circular shaped cropped output image when passing 'circularCrop' props TRUE
See original GitHub issueHi, I’m using our REACT IMAGE CROP package and trying a thing like to crop the image into circular shape.
What I did is, as per our documentation, the cropper can be converted into CIRCLE shape when passing circularCrop props as true. Like below,
<ReactCrop src={src} keepSelection={true} circularCrop={true} crop={crop} ruleOfThirds={true} onImageLoaded={this.onImageLoaded} onComplete={this.onCropComplete} onChange={this.onCropChange} />
Successfully I can get the cropper as circular shape, but the output of that cropper images is not in circular, instead its still in square/rectangle.
Is there any way to get the circle cropped image from it ?
Please find below screen grab mates,
CC: @DominicTobias , @DPr00f , @littleiffel , @PetrochukM , @DominicTobias-b1 , @arendjr, @virgofx
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (2 by maintainers)
Top GitHub Comments
@AndiswamyDev do you need the circular image to be downloaded or just displayed? Create a class that has a border radius of 100% and apply it to any image cropped 4/4 to achieve this. Like Dominic was saying, it makes more sense to apply the circular styling than bake it into the image. If you view the image source behind any popular social media (twitter, ig, twitch) their profile images are squares displayed with a class to make them circular.
my example:
Cool, sure thanks 😉
On Wed, 17 Mar 2021 at 15:06, Andiswamy Rajagopal @.***> wrote:
–
Dominic Tobias Engineer, UI, Exchange Engineering Email: @.*** Direct: Address: Level 26, The Centrium, No. 60 Wyndham Street, Central, Hong Kong Website: block.one https://www.block.one
The information contained in this email is confidential together with any information contained in any attachments to this email. You should not disclose, give or copy the information to anyone other than the person(s) who are named or referenced above. The law may also protect the information as a legally privileged document and/or as a copyright work. If you have received this email and you are not the person named or referenced above, please let the sender know and delete the email from your computer (and, if applicable, your computer system(s) and server(s)). For information about how we process personal data and monitor communications please see our privacy policy https://block.one/privacy-policy/ and for terms of use please see our terms of use here. https://block.one/terms-of-use/