Skip to content

Fix: Resolve 'Canvas: trying to draw too large' error by resizing image - #175

Merged
Mohammed-Baqer-null merged 1 commit into
AndroidCSOfficial:devfrom
zeeicz:fix/canvas-too-large-error
Feb 8, 2026
Merged

Fix: Resolve 'Canvas: trying to draw too large' error by resizing image#175
Mohammed-Baqer-null merged 1 commit into
AndroidCSOfficial:devfrom
zeeicz:fix/canvas-too-large-error

Conversation

@zeeicz

Copy link
Copy Markdown
Contributor

Summary

This PR fixes the crash caused by Canvas: trying to draw too large when loading high-resolution images.

Changes

  • Implemented bitmap resizing to ensure images fit within the hardware canvas limits.

Verification

  • Tested and verified.
  • The app no longer crashes, and images render correctly on my device.

nullij

This comment was marked as off-topic.

@Mohammed-Baqer-null
Mohammed-Baqer-null merged commit 8d876e9 into AndroidCSOfficial:devFeb 8, 2026
Sign up for freeto 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.

3 participants

@zeeicz@nullij@Mohammed-Baqer-null