Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
base system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Sep 2021 at 08:15 UTC
Updated:
1 Oct 2021 at 01:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottComment #3
longwaveCasting the values is an easy fix, as these are randomly generated images I don't see any accuracy issues from doing this.
Comment #4
alexpottWell the casting is already happening internally in these built-in methods. There's no half pixels :)
Comment #5
longwaveI was thinking should we cast or round
$xfirst and then use the integer value in the later calculations that use the variable, but in this case it's not worth thinking about :)Comment #6
alexpott@longwave good point. The approach in the patch maintains the current behaviour and as this is for random images I agree - let's save the brainpower :)
Comment #7
larowlanCommitted 749dd1d and pushed to 9.3.x. Thanks!