RedApparat / Fotoapparat

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

Issue with AutoFlash #326

Open Gnzlt opened 5 years ago

Gnzlt commented 5 years ago

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

Given you are using autoFlash() mode in a dark environment where flash is needed, When a picture is taken, Then the picture should be brighter because of the flash.

How did you initialize FA?

    fotoApparat = Fotoapparat.with(view.context)
        .into(view)
        .jpegQuality(manualJpegQuality(50))
        .previewResolution { PreviewSize(800, 600) }
        .photoResolution { Resolution(800, 600) }
        .flash { Flash.Auto }
        .build()
    fotoApparat.takePicture()
        .toBitmap()
        .toSingle()

What was the result you received?

The flash is triggered but the final picture is dark.

What did you expect?

The flash should be triggered and final picture should be brighter because of the flash.

Context:

SenDesignRO commented 5 years ago

Issue also present on Galaxy A8 API 26. FA version: 2.7.0