Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
910 stars 199 forks source link

Feature Request: Option to Set Maximum Image Size #413

Open vertcli opened 7 months ago

vertcli commented 7 months ago

Proposal

Problem: Default image size is too large for many solutions and image post-process takes too long to performa a resize process.

Solution: It would be beneficial to have an option in CamerAwesome builder to specify the maximum dimensions (width and height) or file size for captured images. This could be an additional parameter (i.e. photoSize) in the camera builder.

hedi-ghodhbane commented 6 months ago

I'm also having the same issue. I'm using the camera for documents purpose and I need some post-process to crop image ect. The image size is causing the post-process to be very laggy and takes too much time

Lonely-shang commented 6 months ago

As a temporary solution, you can modify the code yourself Modify the resolution of the photo taken by settingImageCapture.Builder().setMaxResolution(Size) I don’t know if the official will add this function in the future.

vertcli commented 6 months ago

Thanks @Lonely-shang, I will try this workarround.

mwvarela commented 2 months ago

As a temporary solution, you can modify the code yourself Modify the resolution of the photo taken by settingImageCapture.Builder().setMaxResolution(Size) I don’t know if the official will add this function in the future.

Where did you use this code ?