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

Divide By Zero Error in Edge Case with Automatic Image resizing #2740

Open
ctsims opened this issue Feb 7, 2024 · 1 comment
Open

Divide By Zero Error in Edge Case with Automatic Image resizing #2740

ctsims opened this issue Feb 7, 2024 · 1 comment

Comments

@ctsims
Copy link
Member

ctsims commented Feb 7, 2024

There is a bug in automated image resizing when an image's existing / native size size is exactly the width of the screen.

Discovered with a specific image and replicated with the following virtual device profile:
image

Adding this 456x456 image as the multimedia image for a question label with the above device screen parameters should result in a crash. I can't quite remember if the bug was when this image was 456x456 or 480x480 (exact screen size or size minus padding maybe), but resizing to one of those should work.
download

Further Context: https://dimagi.atlassian.net/browse/SUPPORT-16630

@ctsims
Copy link
Member Author

ctsims commented Feb 7, 2024

Flagging @dannyroberts for Mobile Backlog building

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

No branches or pull requests

1 participant