From: Michael Date: Mon, 5 Feb 2024 18:16:47 +0000 (+0000) Subject: Possible fixes "libpng warning: Interlace handling should be turned on when using... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=83306949ac361e753351b3f333fc874a464f9f1d;p=friendica.git Possible fixes "libpng warning: Interlace handling should be turned on when using png_read_image" --- 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');