Question

using the cwac-camera library, on the left and on the right (more times just on the left), the final image and the preview gets cut after taking a picture.

Also Xperia Z1 -> FFC (Front Facing Camera) ->
left and right side images are cut
http://s7.directupload.net/images/140228/ei5saica.png http://s14.directupload.net/images/140228/ftnecxau.png


Another issue:
Also I added the library's view into a fullscreen fragment which will not be recreated *on rotation* -> result -> somehow the screen-preview-ratio changes on
- portrait
- landscape
- and taking picture

Means: On portrait the head is a littlebit wider (more width) than on landscape, and after taking picture the preview image is also a little bit more stretched then the (live) preview berfore. But finally the image seems to be the correct one. This Problem was seen on an HTC One :/

Was it helpful?

Solution

Note that StackOverflow is for programming questions. Nothing here is a question. If you feel that you have identified bugs, post an issue with complete steps to reproduce the problem, including device model(s) and Android OS version(s). Use StackOverflow for questions about the library.

using the cwac-camera library, on the left and on the right (more times just on the left), the final image and the preview gets cut after taking a picture.

I would guess that it is a variation on this issue.

Another issue

Part of this is presumably the same issue. With respect to "the screen-preview-ratio changes on portrait/landscape", if you are not creating a new CameraView, and you have the camera locked to landscape, then I do not see where I would be changing the preview behavior on an orientation change.

OTHER TIPS

You may set preview size and picture size independently. But to achieve the best results, choose picture size that has same aspect ratio as your preview frame. E.g. for preview 640x480, you can use 3264x2448 picture. But if you use 1280x720 preview, you will be better served by a wide picture, e.g. 4128X2322.

Note that usually, the wide (16:9) format is achieved by essentially cropping a 4:3 picture.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top