Save alpha channel when downloading PNG images
Fixes #2805 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
90f95027a8
commit
7a3260ae9e
@ -144,6 +144,8 @@ class DownloadImages
|
|||||||
$this->logger->debug('DownloadImages: Re-creating jpg');
|
$this->logger->debug('DownloadImages: Re-creating jpg');
|
||||||
break;
|
break;
|
||||||
case 'png':
|
case 'png':
|
||||||
|
imagealphablending($im, false);
|
||||||
|
imagesavealpha($im, true);
|
||||||
imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9));
|
imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9));
|
||||||
$this->logger->debug('DownloadImages: Re-creating png');
|
$this->logger->debug('DownloadImages: Re-creating png');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user