X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FHelper%2FDownloadImages.php;h=0d330d2a315c5f01d9d1d11022cde49c7f29ae86;hb=d83d25dadec2c38460a32d96f5d2903426fec9d3;hp=264bc6a3eba7cb30ddedcad79821de83dac8341a;hpb=1f00547836d1e832b31368413dccb32586206321;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'); }