Skip to content

Conversation

@zeebie-new
Copy link

PR Checklist

What is the current behavior?

On Android API 22, setting large values for width or height in ImageAssetOptions causes the app to crash with "bitmap size exceeds 32 bits" (see #6289).

What is the new behavior?

This change caps the bitmap dimensions to 2048x2048 in imagepicker.android.ts to prevent bitmap overflow and crashes on API 22. The cap is applied regardless of user-supplied dimensions.

Fixes/Implements/Closes #6289.

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.

1 participant