-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding compression quality as parameter of ResizeOption. Fixes #41. #42
Conversation
Hey @shtolik, overall, your contribution looks good to me – really appreciate your work on adding the JPEG compression rate along with the resize options. I've left a code review with one small request: could we add a validation check to ensure that the compression quality value remains between 0 and 1? If a user inputs a value above 1.0, it might lead to issues since the compression quality in JPEG format is typically defined within this range. Implementing this safeguard will help maintain the robustness of the library. |
...o-image-picker/src/iosMain/kotlin/com/preat/peekaboo/image/picker/ImagePickerLauncher.ios.kt
Outdated
Show resolved
Hide resolved
...-image-picker/src/androidMain/kotlin/com/preat/peekaboo/image/picker/PeekabooImageResizer.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a brief review. I'd appreciate it if you could check it and make any necessary changes. Thank you, @shtolik
Adding annotation library and marking compressionQuality param as FloatRange.
Pushed changes fixing suggestions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for your contribution! 👍
Adding compression quality as parameter of ResizeOption. Fixes #41