Thank you for the patch. It is fixed in new version.
I have removed the Polyfill dependency in newer version.
Thank you @priyanka277 for pointing out.
I have dig deeper and found that in core\modules\system\src\Plugin\ImageToolkit\GDToolkit.php file we are using getimagesize() function which is creating this issue.
Please find attached patch which fixes the issue using below reference link.
I can confirm that this is coming in Drupal 10.2.4 and PHP 8.3.
My finding is when we manually change the image orientation from landscape to portrait or portrait to landscape then only this issue is occurs.
Say I have an original image of size 500x1000 and manually changes it to 1000x500 using Rotate right or Rotate left feature of Windows system, Drupal is saving it's width as 500 and height as 1000 as original image size, but when I rotate that same image using the MS Paint the image width and height saved correctly in Drupal.
Jaykumar95 → created an issue.
You can add as many as services you want by adding it in configuration.
https://www.addtoany.com/buttons/customize/drupal/add_services
attached patch #5 while follow up on #3 failed in test.
attaching patch for review.
Jaykumar95 → created an issue.
As per previous code for gatsby_entity_insert
hook we add preview log first and then build log but in #10 patch it's reversed.
which will cause test case failure in \tests\src\Kernel\GatsbyEntityLoggerTest.php
as the conditions are changed.
When trying to check fastbuild logs explicit accessCheck
exception thrown.
attached patch will resolve the issue.