bcabanes / angular-image-cropper

AngularJS directive for cropping images.
124 stars 62 forks source link

restrict the croped image to certain aspect ratio #28

Open wazirsoft opened 8 years ago

wazirsoft commented 8 years ago

How can I set aspect ratio so user can crop the image under that aspect ratio?

Like using an attr aspect-ratio="1.3" or api?

tomchi89 commented 7 years ago

You can play around with width and height attributes. You can assign a function that return calculated value for these attributes based on your need aspect ratio.