hsbijarniya / image_editor_plus

Flutter Image Editor Plugin with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories.
MIT License
122 stars 116 forks source link

Enforcing crop ratio when other editing options are on? #71

Closed Pawcio93 closed 10 months ago

Pawcio93 commented 1 year ago

Hi,

We are using almost all of the image editing options and when we have them all on, we can't find a way to enforce a crop ratio on the user. For example we want that every image need to be in 1:1 ratio or some other fixed one even if user will not go to crop settings.

We are thinking about running crop editor twice, first just for cropping and second for rest, but if it is a quick change to allow doing this at once it would be absolutely great.

hsbijarniya commented 10 months ago

First use ImageCropper with aspect ratio 1/1 and then pass the cropped image bytes to ImageEditor.