]> git.mxchange.org Git - friendica.git/commitdiff
Possible fixes "libpng warning: Interlace handling should be turned on when using...
authorMichael <heluecht@pirati.ca>
Mon, 5 Feb 2024 18:16:47 +0000 (18:16 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 5 Feb 2024 18:16:47 +0000 (18:16 +0000)
src/Object/Image.php

index c4f3e7bfb8234c5d5b4c8edc85f91d10a258546f..5987e26d6fdb95254efe0928620dd3ead6f7748f 100644 (file)
@@ -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');