MattMcFarland / react-darkroom

An HTML5 Image Editing Component built with ReactJS
http://blog.mmcfarland.net/react-darkroom/
MIT License
124 stars 21 forks source link

Restrict cropping selection to square only #15

Open truongmh opened 7 years ago

truongmh commented 7 years ago

Could we somehow restrict the cropping selection only square to maintain the aspect ratio of the picture. I'm only allow user to create a square image?

nhannhan159 commented 7 years ago

I also have this issue, please help on this.

tuannguyendang commented 7 years ago

Wow, I have same issue. Please help me! please

MattMcFarland commented 7 years ago

This could be done. I'll look into it

On Sep 11, 2017 6:27 AM, "danhco" notifications@github.com wrote:

Wow, I have same issue. Please help me! please

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MattMcFarland/react-darkroom/issues/15#issuecomment-328488911, or mute the thread https://github.com/notifications/unsubscribe-auth/AAmDuc8B8Fqjq_LeHlR31TtsXbcaPtQ1ks5shQsJgaJpZM4PS7s6 .

MattMcFarland commented 7 years ago

Sorry for delays, I'm currently working on a big refactor (v2.0.0) - and this will be one of the things the new version will include. I have a few things left to do for the first release:

truongmh commented 7 years ago

Just wanted to say BIG THANKS. This is simply a good react component.

nhannhan159 commented 7 years ago

Many thank to you, help me a big problem.

MattMcFarland commented 7 years ago

Thanks for the patience, I'm still working on this, will have solution soon. Teaming up with another component react-image-crop as they've solved the crop problem elegantly.