IGRSoft / IGRPhotoTweaks

Drag, Rotate, Scale and Crop
https://igrsoft.com
MIT License
237 stars 72 forks source link

lock aspect ratio and aspect ratio by default #9

Closed ritika1159 closed 7 years ago

ritika1159 commented 7 years ago

hi,

I wanted to set the aspect ratio as 1:1 by default and it should be locked. How to achieve this. When first time image is selected the crop area is same as image view area I need that aspect ratio to be 1:1. Please help

Thanks

Ritika

ikorich commented 7 years ago

Hi

Please see example (setCropAspectRect and lockAspectRatio)

ritika1159 commented 7 years ago

Hi,

I have seen that but i want to know that when user select the image for first time it is setting cropview as of imagesize. It is calculating maxbounds (). I want to know how will it set 1:1 aspect ratio and lock it by default.

Thanks Ritika

On Mon, 19 Jun 2017 at 7:49 PM, Korich notifications@github.com wrote:

Hi

Please se example (setCropAspectRect and lockAspectRatio)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/IGRSoft/IGRPhotoTweaks/issues/9#issuecomment-309454053, or mute the thread https://github.com/notifications/unsubscribe-auth/AayMlPJjMWpRXb29j12XoZYpgNUuPiIcks5sFoNxgaJpZM4N-H9M .

-- -- Regards Ritika Arya