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

Feature Request: Crop with min width/height and aspect ratio #140

Open
tempurai opened this issue Feb 2, 2019 · 7 comments
Open

Feature Request: Crop with min width/height and aspect ratio #140

tempurai opened this issue Feb 2, 2019 · 7 comments
Labels
Feature New features to implement

Comments

@tempurai
Copy link

tempurai commented Feb 2, 2019

Hi, thank you so much for this great lib.

However, can you implement crop with min width/height and aspect ratio?

Like we wish to limit user crop at 4:5 ratio with 200px width minimal.

@wvell
Copy link

wvell commented Feb 11, 2019

Anyone working on this?

@junghwan-park
Copy link
Member

@LincanLi
It will be good. I'll add this with feature list.
But now, some high priority issues must be resolving first.

@mikiamit
Copy link

So.. Is it possible to lock the crop ratio?

@AkibDeraiya123
Copy link

Hey @junghwan-park ,
Thanks for really nice and helpful library.

@junghwan-park i want to achieve something like this.
When image editor is open i want to initialize direct crop menu. I can achieve this using initMenu: 'crop'. Once this crop is menu will be show,

  1. i don't want to show it's suggestions(I mean crop suggestions like 16:9, 7:5, 3:2, custom). How can i achieve this?
  2. I also want to show custom crop area(or aspect ratio like 5:1 or 2:1 or any others. This aspect ratio will automatically set on image and user can't change it. But user can drag it and set to different part of image. So, once user will click on apply button selected crop area will be automatically croped) by default in editor which i will pass into imageEditor configuration object or after configured some functions like imageEditor.crop(....).

In, short i want to initialize image editor with my custom crop ratio and which will by default set on image, this crop ratio user can't change.

Thanks

@daktas
Copy link

daktas commented Nov 21, 2019

thanks AkibDeraiya123 it could be realy cool feature. I'm looking for something like that, any news about it?

@AkibDeraiya123
Copy link

AkibDeraiya123 commented Nov 22, 2019

Hey @daktas ,
I asked the same question as a new, it's here.

Here is that link (#248) and @jinwoo-kim-nhn also replied on it also, but I am also waiting from him about more explanations with the example.

I hope we will get an answer from him very soon.
If you found something more interesting and helpful please also update me.

@junghwan-park junghwan-park added Feature New features to implement and removed Question labels Jan 10, 2020
@mason-monu
Copy link

@junghwan-park any progress guyz in this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New features to implement
Projects
None yet
Development

No branches or pull requests

7 participants