Merge pull request #13873 from annando/libpng

Possible fixes "libpng warning: Interlace handling should be turned on when using png_read_image"
pull/13872/head
Hypolite Petovan 2024-02-05 15:20:23 -05:00 committed by GitHub
commit 760c7deba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -175,6 +175,7 @@ class Image
$this->valid = true; $this->valid = true;
imagealphablending($this->image, false); imagealphablending($this->image, false);
imagesavealpha($this->image, true); imagesavealpha($this->image, true);
imageinterlace($this->image, true);
return true; return true;
} }
@ -667,9 +668,6 @@ class Image
$stream = fopen('php://memory','r+'); $stream = fopen('php://memory','r+');
// Enable interlacing
imageinterlace($this->image, true);
switch ($this->getType()) { switch ($this->getType()) {
case 'image/png': case 'image/png':
$quality = DI::config()->get('system', 'png_quality'); $quality = DI::config()->get('system', 'png_quality');