CamerAwesome icon indicating copy to clipboard operation
CamerAwesome copied to clipboard

Feature Request: Option to Set Maximum Image Size

Open vertcli opened this issue 1 year ago • 5 comments

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.

vertcli avatar Nov 20 '23 20:11 vertcli

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

hedi-ghodhbane avatar Dec 08 '23 16:12 hedi-ghodhbane

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.

Lonely-shang avatar Dec 22 '23 09:12 Lonely-shang

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

vertcli avatar Dec 28 '23 16:12 vertcli

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 ?

mwvarela avatar Apr 05 '24 17:04 mwvarela

@Lonely-shang Where do you put that line?

GTechMicah avatar Aug 14 '24 13:08 GTechMicah