jeongmin / Composely

A collection of Compose UI widgets and functionalities to simplify and enhance your Android app development.
Apache License 2.0
4 stars 0 forks source link

[Feature] Add ability for users to set image quality in Picture.toBitmap() function #8

Open godomin opened 2 months ago

godomin commented 2 months ago

Description: Currently, the Picture.toBitmap() function does not provide users with the ability to set image quality when capturing images. Adding this feature would allow users to specify the preferred level of image quality, offering more control and customization options for capturing images within the application.

Goals:

1. Allow users to define image quality when using Picture.toBitmap() function.
2. Enhance user experience by providing more customization options for image capture.
3. Improve image processing capabilities within the application.

Steps:

1. Update the Picture.toBitmap() function to include a parameter for setting image quality.
2. Implement validation checks for the image quality parameter to ensure it falls within acceptable ranges.
3. Modify the underlying image capture logic to support the specified image quality setting.

Acceptance Criteria:

* Users can successfully set image quality when using the Picture.toBitmap() function.
* The specified image quality parameter is applied correctly during image capture.
* Image quality settings do not negatively impact the overall performance or functionality of the application.

Additional Context: Consider the range of acceptable values for image quality (e.g., 1-100 or low/medium/high). Test the feature thoroughly to ensure compatibility across different devices and environments.