uCrop icon indicating copy to clipboard operation
uCrop copied to clipboard

"Freestyle" cropping

Open franciscofranco opened this issue 10 years ago • 10 comments

Can we have a feature to crop a picture freely by dragging the picture corners instead of having to pinch to zoom in/out or changing the aspect ratio?

Thanks!

franciscofranco avatar Feb 14 '16 17:02 franciscofranco

@franciscofranco Sure you can, please fork & pull-request :octocat: We're not planning to add this feature at the moment.

shliama avatar Feb 17 '16 18:02 shliama

I can try and implement it yeah. Any special reason why you're not planning to add the feature yourself?

franciscofranco avatar Feb 17 '16 19:02 franciscofranco

Well, it's implemented like this by-design. Library allows user to choose from various most common aspect ratios. But it's not really hard to implement "freestyle" cropping - because logic of library doesn't really cares, it's all dynamic. However at the moment I just have no time to work on this feature. And here is a power of open-source - you can actually implement it and everyone gonna use it :+1:

shliama avatar Feb 17 '16 19:02 shliama

Would be great 👍

On Wed, Feb 17, 2016 at 11:51 PM, Oleksii [email protected] wrote:

Well, it's implemented like this by-design. Library allows user to choose from various most common aspect ratios. But it's not really hard to implement "freestyle" cropping - because logic of library doesn't really cares, it's all dynamic. However at the moment I just have no time to work on this feature. And here is a power of open-source - you can actually implement it and everyone gonna use it [image: :+1:]

— Reply to this email directly or view it on GitHub https://github.com/Yalantis/uCrop/issues/32#issuecomment-185374334.

developer-- avatar Feb 18 '16 09:02 developer--

@franciscofranco I'd help you with realising that. I'm also missing this feature! +1

GameDevLlama avatar Feb 20 '16 12:02 GameDevLlama

@franciscofranco +1 really needed feature :)

vxhviet avatar Apr 08 '16 04:04 vxhviet

I'll try to add this feature in the next update.

shliama avatar Apr 20 '16 14:04 shliama

Introduced the feature in version 1.5.0

shliama avatar Apr 21 '16 15:04 shliama

Am I missing something? I don't see this feature anymore in the current version 2.2.4 This feature is def. useful for cropping an object out inside of the picture taken.

sarthak-m avatar Apr 16 '20 01:04 sarthak-m

Am I missing something? I don't see this feature anymore in the current version 2.2.4 This feature is def. useful for cropping an object out inside of the picture taken.

UCrop.Options options = new UCrop.Options(); options.setFreeStyleCropEnabled(true);

see this: solved issue

wang-chase-dream avatar Feb 02 '25 03:02 wang-chase-dream