Skip to content
Snippets Groups Projects

Automated Project Update Bot fixes

Files
3
<?php
declare(strict_types=1);
namespace Drupal\Tests\exif_orientation\Functional;
use Drupal\Tests\BrowserTestBase;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Site\Settings;
use Drupal\file\Entity\File;
use Drupal\Tests\BrowserTestBase;
/**
* @file
@@ -145,7 +147,7 @@ class ExifOrientationTest extends BrowserTestBase {
$this->assertTrue($img->getWidth() > $img->getHeight(), 'The image format is landscape.');
// Verify the rotation by color inspection.
$rgb = imagecolorat($img->getToolkit()->getResource(), 10, 10);
$rgb = imagecolorat($img->getToolkit()->getImage(), 10, 10);
$r = ($rgb >> 16) & 0xFF;
$g = ($rgb >> 8) & 0xFF;
$b = $rgb & 0xFF;
Loading