Skip to content

[Feature] Option to use highest resolution available and full camera previewΒ #19

@dallasyan

Description

@dallasyan

Summary

Add an option to use the highest resolution available (typically 4:3 instead of the current 16:9 I think?), paired with FIT_CENTER instead of FILL_CENTER to actually get the full view on the preview.

Motivation

I am running OCR on the photo taken and would like the full resolution and all the space available from the camera sensor.

Currently on a Samsung Galaxy S25 in portrait, with this package I am getting ~2252x4000 (9:16) whereas the native 3:4 photo is 3000x4000.

Using FILL_CENTER with a 4:3 ratio will cut off a lot of the camera from the preview, so the scaleType would need to change (to FIT_CENTER?) to get the whole preview.

Suggested Solution

These are the settings that worked for me on Samsung Galaxy S25 (I copy pasted relevant changes into the fork so this isn't my working copy, apologies if it doesn't compile).
main...dallasyan:capacitor-camera-view:main

Alternatives

Additional Context

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions