Possible fixes "libpng warning: Interlace handling should be turned on when using png_read_image"
This commit is contained in:
parent
a9d668cc78
commit
83306949ac
1 changed files with 1 additions and 3 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue