summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-11-03 16:11:03 +0100
committerGitHub <noreply@github.com>2022-11-03 16:11:03 +0100
commit2e83a21cd2b2d2a167f3368e087a11ac95e127a3 (patch)
tree0684759be109fdc051ea5f788915d0d1445db37c /tests
parent3b084e5fbcab6fea00685a81922635ec1428e8aa (diff)
parent48917e718e55bc4e72d2b5f928e68049c35652e5 (diff)
downloadnextcloud-server-2e83a21cd2b2d2a167f3368e087a11ac95e127a3.tar.gz
nextcloud-server-2e83a21cd2b2d2a167f3368e087a11ac95e127a3.zip
Merge pull request #34678 from pulsejet/patch-jpeg
Interlace all output JPEG
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/ImageTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/ImageTest.php b/tests/lib/ImageTest.php
index e6818c7e243..c843d5f5eb9 100644
--- a/tests/lib/ImageTest.php
+++ b/tests/lib/ImageTest.php
@@ -149,6 +149,8 @@ class ImageTest extends \Test\TestCase {
$img = new \OC_Image(null, null, $config);
$img->loadFromFile(OC::$SERVERROOT.'/tests/data/testimage.jpg');
$raw = imagecreatefromstring(file_get_contents(OC::$SERVERROOT.'/tests/data/testimage.jpg'));
+ /** @psalm-suppress InvalidScalarArgument */
+ imageinterlace($raw, (PHP_VERSION_ID >= 80000 ? true : 1));
ob_start();
imagejpeg($raw);
$expected = ob_get_clean();