Skip to content
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

Fix bitmap crop/scaling for android #151

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

jthure
Copy link

@jthure jthure commented Mar 22, 2024

Summary

Fixes #150

Test plan

I added a "scale" to the test app, so that you can test with a lot of downscaling of the image. The bug can reproduced by running the example and revert the fixed code in /imageeditor/ImageEditorModuleImpl.kt, then set the scale to less than 0.5. With the fixed code in /imageeditor/ImageEditorModuleImpl.kt, the issue is gone

@retyui retyui requested a review from mateusz1913 March 22, 2024 09:01
Copy link
Member

@mateusz1913 mateusz1913 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good, but kotlin linter step failed. Please run yarn:format:android from the root project directory, to fix lint errors in Kotlin code

@retyui retyui merged commit 9813b2c into callstack:master Mar 22, 2024
6 checks passed
@retyui
Copy link
Collaborator

retyui commented Mar 22, 2024

Thank you @jthure

@jthure
Copy link
Author

jthure commented Mar 22, 2024

Thank you @jthure

No problem! Happy to help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect scaling on Android
3 participants