-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cover resizing is incorrect #1359
Labels
Comments
Thanks for reporting. Yes, I can confirm the bug. Unfortunately it happens with GD and Imagick. I will look into it. |
olivervogel
added a commit
that referenced
this issue
Jun 6, 2024
olivervogel
added a commit
that referenced
this issue
Jun 6, 2024
Thank you very much! |
This is now fixed in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I use the "cover" type of resizing and I noticed that if the original image is odd in size, the resizing is incorrect.
Original image size: 375x250
Requested size: 240x90
Received size: 239x90
So it is rounded down, not up, which I think is a problem.
Code Example
Images
Original:
Resized:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: