react-native-camera icon indicating copy to clipboard operation
react-native-camera copied to clipboard

Captured image does not crop image to <Camera> viewfinder's ratio

Open ksokhan opened this issue 11 years ago • 3 comments

I expected the outputted image to have the same width/height ratio as the camera viewfinder. However, the returned image is always the full capture of the camera, irrespective of the camera viewfinder's dimensions.

ksokhan avatar May 23 '15 14:05 ksokhan

This is intended - I could see this being a useful setting though.

lwansbrough avatar May 26 '15 17:05 lwansbrough

Ok thanks! I'll see if I can set up a PR for this.

ksokhan avatar May 29 '15 02:05 ksokhan

This would be a great feature. I think it's also about user expectations and even privacy. A user will frame the photo based on the preview so any subsequent action on the actual photo needs to be re-evaluated by the user if it's different to the preview. eg. if you are going to upload a photo

Are the cropping rules the same on iOS and Android? It could be that the cropping of the actual photo is handled outside of this library if the preview cropping rules were consistent cross platform and documented.

nickgerig avatar Nov 08 '16 20:11 nickgerig