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
116 stars 108 forks source link

Ration customization #47

Closed Pawcio93 closed 1 year ago

Pawcio93 commented 1 year ago

I really love the plugin and it would be great if the ratio section could be customizable. We need 1:1 and 2:3 ratios in one of the project where in one place 1:1 ratio must be forced and in different place the 2:3 is a must.

So it would be a great feature if we can access and change the list of ratios according to our needs

Thank you in advance!

hsbijarniya commented 1 year ago

Use availableOptions property in ImageCropper class to force it.

Added in v0.2.4

Gosten commented 1 year ago

Hello, is it possible to customize ratios using ImageEditor?

Using it with ImageCropper class is pretty straightforward, but I don't see a way to implement it using ImageEditor class

hsbijarniya commented 1 year ago

you can pass cropAvailableRatios in ImageEditor class