Open albanlorillard opened 4 years ago
This is something I noticed as well, the ‘old’ camera implementation of android does not support multiple camera’s very well , there is a new camera implementation that handles multiple camera’s much better
Same issue here. Is there any solution?
Looking at the photos in the original post, I am wondering if this is the same problem as I saw on an iPhone.
On many phones the camera isn't the same aspect ratio as the screen. CameraPreview covers the phone screen with the picture, which means it often crops off the sides of the picture when in portrait mode.
When the photo is captured it's the full photo, not the bit which fitted the screen.
It took me a while to work this out, and I added some JS in my app that cropped the captured photo to the aspect ratio of the phone's screen. For me this solved the problem.
Hey @pbowyer facing the same issue. Would like to know how you worked it out. Please share the approach if you dont mind. Thanks!
Hello,
Actually, i've 2 issues concerning capture() function and the live camera :
Example (doesn't matter of the content) At left: screenshot of my application At right: the base64 image captured (The blue area = the gap that appear only in the capture)
Here is my configuration:
I've tried to add x:0, y:0 or width=window.screen.width and height=window.screen.height but that change only on the web browser.
Regards,
Alban