diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-04-13 13:07:06 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-04-13 13:07:06 +0200 |
commit | 3e7a843aa998442148061347e7978722b8cd87d2 (patch) | |
tree | 0369670297ed0f18b7e60db16f500f649391dde4 /src/Wallabag/CoreBundle/Helper/DownloadImages.php | |
parent | 19122cf66037f86375072ffa60b6a43b54f02f99 (diff) | |
parent | 656395fde63fe566bf44ee63b1344efdd8c2e653 (diff) | |
download | wallabag-3e7a843aa998442148061347e7978722b8cd87d2.tar.gz wallabag-3e7a843aa998442148061347e7978722b8cd87d2.tar.zst wallabag-3e7a843aa998442148061347e7978722b8cd87d2.zip |
Merge branch 'master' into 2.3
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/DownloadImages.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/DownloadImages.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/DownloadImages.php b/src/Wallabag/CoreBundle/Helper/DownloadImages.php index c83f9618..0d330d2a 100644 --- a/src/Wallabag/CoreBundle/Helper/DownloadImages.php +++ b/src/Wallabag/CoreBundle/Helper/DownloadImages.php | |||
@@ -144,6 +144,8 @@ class DownloadImages | |||
144 | $this->logger->debug('DownloadImages: Re-creating jpg'); | 144 | $this->logger->debug('DownloadImages: Re-creating jpg'); |
145 | break; | 145 | break; |
146 | case 'png': | 146 | case 'png': |
147 | imagealphablending($im, false); | ||
148 | imagesavealpha($im, true); | ||
147 | imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9)); | 149 | imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9)); |
148 | $this->logger->debug('DownloadImages: Re-creating png'); | 150 | $this->logger->debug('DownloadImages: Re-creating png'); |
149 | } | 151 | } |