RedApparat / Fotoapparat

Making Camera for Android more friendly. 📸
Apache License 2.0
3.81k stars 405 forks source link

Preview together with taken photo change theirs size after takePicture() on Sony Xperia XA2 #360

Open nominalista opened 5 years ago

nominalista commented 5 years ago

What are you trying to achieve or the steps to reproduce?

After calling takePicture() function, preview becomes smaller and after some small amount of time it returns to the original size. It affects taken photo, it looks like it was taken with more wide-angle camera. I understand that I found this issue only on a single device, but maybe you can give me a clue for any workaround.

How did you initialize FA?

val cameraConfiguration = CameraConfiguration(
    pictureResolution = aspectRatio(Rational(4, 3).toFloat(), highestResolution()),
    previewResolution = aspectRatio(Rational(4, 3).toFloat(), highestResolution()),
    jpegQuality = manualJpegQuality(100)
)
fotoapparat = Fotoapparat(
    context = context,
    view = cameraView,
    cameraConfiguration = cameraConfiguration
)

What was the result you received?

Here is recorded screen with issue: https://media.giphy.com/media/8OSSSa6RsPmm8JPgKh/giphy.gif

Context: