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

Ensure resize image height is greater than zero #10318

Merged
merged 2 commits into from
Jan 17, 2022

Conversation

cconard96
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #10109

In some cases an image's resized height can be rounded down to zero which isn't valid (example image was 3px high by 449px wide).
Wrapping the division in ceil should make images at least 1px high.

@trasher trasher merged commit 6808ed3 into glpi-project:9.5/bugfixes Jan 17, 2022
@cconard96 cconard96 deleted the fix/10109 branch January 18, 2022 00:55
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.

3 participants