From 83306949ac361e753351b3f333fc874a464f9f1d Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Feb 2024 18:16:47 +0000 Subject: [PATCH] Possible fixes "libpng warning: Interlace handling should be turned on when using png_read_image" --- src/Object/Image.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Object/Image.php b/src/Object/Image.php index c4f3e7bfb8..5987e26d6f 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -175,6 +175,7 @@ class Image $this->valid = true; imagealphablending($this->image, false); imagesavealpha($this->image, true); + imageinterlace($this->image, true); return true; } @@ -667,9 +668,6 @@ class Image $stream = fopen('php://memory','r+'); - // Enable interlacing - imageinterlace($this->image, true); - switch ($this->getType()) { case 'image/png': $quality = DI::config()->get('system', 'png_quality');