diff options
author | Varun Patil <radialapps@gmail.com> | 2022-10-19 14:42:42 -0700 |
---|---|---|
committer | Varun Patil <varunpatil@ucla.edu> | 2022-10-25 09:40:20 -0700 |
commit | 48917e718e55bc4e72d2b5f928e68049c35652e5 (patch) | |
tree | 5311618a25ad0063b14750c8fbddcf2ddaf4d7b5 /tests/lib/ImageTest.php | |
parent | be892d2e283a0a939434650a0c9933308a2cc6bb (diff) | |
download | nextcloud-server-48917e718e55bc4e72d2b5f928e68049c35652e5.tar.gz nextcloud-server-48917e718e55bc4e72d2b5f928e68049c35652e5.zip |
Interlace all output JPEG
Progressive images are both smaller and faster to load.
Signed-off-by: Varun Patil <radialapps@gmail.com>
Diffstat (limited to 'tests/lib/ImageTest.php')
-rw-r--r-- | tests/lib/ImageTest.php | 2 |
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(); |