PEPhotoCropEditor icon indicating copy to clipboard operation
PEPhotoCropEditor copied to clipboard

Keeping crop aspect ratio constant even when resizing the crop frame

Open AnujAroshA opened this issue 9 years ago • 4 comments

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.

AnujAroshA avatar Mar 31 '15 11:03 AnujAroshA

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

DenVog avatar Apr 13 '15 16:04 DenVog

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

DenVog avatar Apr 13 '15 16:04 DenVog

Inside viewDidAppear for PECropViewController, insert:

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

zpb210 avatar May 13 '15 16:05 zpb210

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

harry225 avatar Jun 17 '15 09:06 harry225