diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper/DownloadImages.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/DownloadImages.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/DownloadImages.php b/src/Wallabag/CoreBundle/Helper/DownloadImages.php index c5298236..264bc6a3 100644 --- a/src/Wallabag/CoreBundle/Helper/DownloadImages.php +++ b/src/Wallabag/CoreBundle/Helper/DownloadImages.php | |||
@@ -135,16 +135,16 @@ class DownloadImages | |||
135 | 135 | ||
136 | switch ($ext) { | 136 | switch ($ext) { |
137 | case 'gif': | 137 | case 'gif': |
138 | $result = imagegif($im, $localPath); | 138 | imagegif($im, $localPath); |
139 | $this->logger->debug('DownloadImages: Re-creating gif'); | 139 | $this->logger->debug('DownloadImages: Re-creating gif'); |
140 | break; | 140 | break; |
141 | case 'jpeg': | 141 | case 'jpeg': |
142 | case 'jpg': | 142 | case 'jpg': |
143 | $result = imagejpeg($im, $localPath, self::REGENERATE_PICTURES_QUALITY); | 143 | imagejpeg($im, $localPath, self::REGENERATE_PICTURES_QUALITY); |
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 | $result = imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9)); | 147 | imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9)); |
148 | $this->logger->debug('DownloadImages: Re-creating png'); | 148 | $this->logger->debug('DownloadImages: Re-creating png'); |
149 | } | 149 | } |
150 | 150 | ||