cordova-plugin-crop icon indicating copy to clipboard operation
cordova-plugin-crop copied to clipboard

Options to set resolution

Open vaibhavn1 opened this issue 10 years ago • 5 comments

Hi Mate,

Is there any way where we can resolution of the photo . like the width and the height?

Regards

Vaibhav

vaibhavn1 avatar Oct 14 '15 11:10 vaibhavn1

+1 Only see quality, but cropping would need starting point (x,y),width and height. Btw, could do it with canvas but It has poor performance.

Titoine avatar Oct 26 '15 15:10 Titoine

+1 it would be great to be able to set the parameters: targetWidth and targetHeight

vyacheslavtyurikov avatar Feb 03 '16 15:02 vyacheslavtyurikov

Yep. That's currently hardcoded here and here in case you want to modify it or take a stab at a PR

https://github.com/jeduan/cordova-plugin-crop/blob/master/src/ios/CTCrop.m#L47 https://github.com/jeduan/cordova-plugin-crop/blob/master/src/android/CropPlugin.java#L39

jeduan avatar Feb 03 '16 19:02 jeduan

It would be great to control it from JS. Could make such a possibility?

vyacheslavtyurikov avatar Apr 17 '16 10:04 vyacheslavtyurikov

@jeduan are you planning to implement this?

Hesesses avatar Apr 05 '17 12:04 Hesesses