Needs work
Project:
Drupal core
Version:
main
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2020 at 18:32 UTC
Updated:
16 Feb 2024 at 08:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
avpadernoComment #3
mondrakeDuplicate of #2921123: Adjust Rectangle class to calculate rotated image dimensions according to libgd 2.2.2+. Would really be good to get reviews there.
Comment #4
avpadernoThis issue is about the classes in the
Drupal\system\Plugin\ImageToolkit\Operation\gdnamespace, not theDrupal\image\Plugin\ImageEffectnamespace. The classes in the first namespace don't use theRectangleclass.Comment #5
avpadernoComment #12
quietone commentedThe comment and the related code was removed in #2215369: Various bugs with PHP 5.5 imagerotate(), including when incorrect color indices are passed in.
Comment #13
avpadernoThe comment is still present in the 10.1.x branch.
Comment #14
quietone commented@apaderno, thanks. You are correct.
Comment #15
smustgrave commentedRemoval doesn't seem to cause any issue with the 10.1 tests. LGTM
Comment #16
alexpottWe have exactly the same comment in \Drupal\Component\Utility\Rectangle::rotate() - should be removed there too.
Comment #17
alexpottFor those wondering, we have copious test coverage of rotating rectangles in \Drupal\Tests\Component\Utility\RectangleTest::providerPhp55RotateDimensions()
Tbh I think this provider should be renamed too - because the 5.5ness of the test coverage is irrelevant.
Comment #18
_utsavsharma commentedMade changes as per the comment #16.
Please review.
Comment #19
avpadernoThe comment must be removed from two methods. I also take that alexpott said a test provider should be renamed too.
Comment #22
quietone commentedComment #23
smustgrave commentedAppears to have a test failure. Because quietone is a core committer can't rerun the tests but it was a Unit failure.
Comment #24
aayushmankotia commentedHi,
I have created a patch as per comment #16. Please review.
Comment #25
quietone commented@aayushmankotia, thank you for your interest in this issue.
Drupal is no longer using a patch workflow, all work is done in the merge request. See the top of this issue to find details about the merge request. The documentation on Drupal is in the process of being converted. I suggest you read Using GitLab to Contribute to Drupal. Thanks.