X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2FWallabag%2FCoreBundle%2FHelper%2FDownloadImages.php;h=0d330d2a315c5f01d9d1d11022cde49c7f29ae86;hb=2251045901875aa815dee43ec467fb1af8d416d0;hp=264bc6a3eba7cb30ddedcad79821de83dac8341a;hpb=68003139e133835805b143b62c4407f19b495dab;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Helper/DownloadImages.php b/src/Wallabag/CoreBundle/Helper/DownloadImages.php index 264bc6a3..0d330d2a 100644 --- a/src/Wallabag/CoreBundle/Helper/DownloadImages.php +++ b/src/Wallabag/CoreBundle/Helper/DownloadImages.php @@ -36,7 +36,7 @@ class DownloadImages { // if folder doesn't exist, attempt to create one and store the folder name in property $folder if (!file_exists($this->baseFolder)) { - mkdir($this->baseFolder, 0777, true); + mkdir($this->baseFolder, 0755, true); } } @@ -144,6 +144,8 @@ class DownloadImages $this->logger->debug('DownloadImages: Re-creating jpg'); break; case 'png': + imagealphablending($im, false); + imagesavealpha($im, true); imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9)); $this->logger->debug('DownloadImages: Re-creating png'); }