mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 11:31:05 +00:00
Merge pull request #3017 from Kdecherf/local-image-alpha
Save alpha channel when downloading PNG images
This commit is contained in:
commit
548e608870
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue