camera-preview icon indicating copy to clipboard operation
camera-preview copied to clipboard

Is there a problem with higher resolutions?

Open flaupi opened this issue 5 years ago • 3 comments

Is your feature request related to a problem? Please describe. When I'm photographing, the results are always in a very low resolution.

Describe the solution you'd like The automatic search for a matching resolution should not default to very low resolutions.

Describe alternatives you've considered I didn't really consider alternatives, because I just commented out the

if ((width != 0 && height != 0) || (supportedSize.width * supportedSize.height < 2048 * 1024))

and got better results and no problems.

Additional context There is some kind of a hard limit on resolutions (at least in the code for Android, I didn't look into the code for iOS) and it looks pretty arbitrary to me. Is there a solid reason for this limit? Is this just some tech debt from earlier times of the development?

flaupi avatar Oct 12 '20 09:10 flaupi

Can somebody from the project answer this question please? I am also puzzled as to why there would be a limitation do 2048 x 1024. The "fix" is simple on Android as we just need to comment out the lines mentioned by flaupi but what about on iOS?

anth0 avatar Jan 24 '21 08:01 anth0

@flaupi I've discovered that adding width and height parameters on the CameraPreviewPictureOptions helps for that issue. By adding something like width: 5000 height:2500 it successfully takes me the highest resolution my device has available (on Android)

anth0 avatar Jan 26 '21 14:01 anth0