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

Keeping crop aspect ratio constant even when resizing the crop frame #79

Open
AnujAroshA opened this issue Mar 31, 2015 · 4 comments
Open

Comments

@AnujAroshA
Copy link

Assume we give a Constrain value 16*9. How can we keep that ratio all the time till editing complete? In current version, if we resize the cropping frame, the selected aspect ratio is changing. I need to keep ratio value constant once we select it till we done editing.

@DenVog
Copy link

DenVog commented Apr 13, 2015

I'm interested in this as well. Or disabling resize of the cropping frame altogether.

@DenVog
Copy link

DenVog commented Apr 13, 2015

In the openEditor method, have you tried this:
controller.keepingCropAspectRatio = YES; controller.cropAspectRatio = 16.0f / 9.0f;

@zpb210
Copy link

zpb210 commented May 13, 2015

Inside viewDidAppear for PECropViewController, insert:

self.cropView.cropAspectRatio = 16.0f / 9.0f;
self.keepingCropAspectRatio = YES;

@harry225
Copy link

I set aspect ratio to self.cropView.cropAspectRatio = 3.2 but getting change when applying zoom in/zoom out move.

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

No branches or pull requests

4 participants