From: Michael Date: Tue, 28 Nov 2023 13:50:09 +0000 (+0000) Subject: Hopefully fix "Interlace handling should be turned on when using png_read_image" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c56b915dee7c55a69950a75f13cae52d77f77819;p=friendica.git Hopefully fix "Interlace handling should be turned on when using png_read_image" --- diff --git a/src/Object/Image.php b/src/Object/Image.php index 5e915d84f5..0e99e9b9a9 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; } @@ -543,6 +544,7 @@ class Image $dest = imagecreatetruecolor($dest_width, $dest_height); imagealphablending($dest, false); imagesavealpha($dest, true); + imageinterlace($dest, true); if ($this->type=='image/png') { imagefill($dest, 0, 0, imagecolorallocatealpha($dest, 0, 0, 0, 127)); // fill with alpha @@ -612,6 +614,7 @@ class Image $dest = imagecreatetruecolor($max, $max); imagealphablending($dest, false); imagesavealpha($dest, true); + imageinterlace($dest, true); if ($this->type=='image/png') { imagefill($dest, 0, 0, imagecolorallocatealpha($dest, 0, 0, 0, 127)); // fill with alpha }