-
Bug
-
Resolution: Fixed
-
Minor
-
4.3.4
-
MOODLE_403_STABLE
-
MOODLE_402_STABLE, MOODLE_403_STABLE
-
MDL-81256-403 -
-
1
-
Team Hedgehog 2024 Sprint 1.3
I guess it's a rounding error coming from here:
https://github.com/moodle/moodle/blob/v4.3.3/lib/gdlib.php#L353-L368
Here is an example of the generated image
https://hq.moodle.com/pluginfile.php/7493/course/overviewfiles/Main%20page%20image.jpg
https://hq.moodle.com/pluginfile.php/7493/course/overviewfiles/Main%20page%20image.jpg?preview=bigthumb
We use 'floor()' there and looks like when we dvidide and multiply by the same number we can have a result 249.999999999 which is floor-ed to 249
The generated bigthumb has a white line on the right:
Try it yourself:
- is a regression caused by
-
MDL-76356 Implicit conversion to ints/arrays shows notice in PHP 8.1
-
- Closed
-