diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-03 18:01:25 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-11-03 18:01:25 +0100 |
commit | 001cc7168aa1a7e9b8290b9c29566c586ac8b511 (patch) | |
tree | d1818e81c9ebcfeeecb2acc90cf758f3646865d8 /src/Wallabag/CoreBundle/Helper | |
parent | 864c1dd23a4aa9e5f412302694d9303070dca6dc (diff) | |
download | wallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.tar.gz wallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.tar.zst wallabag-001cc7168aa1a7e9b8290b9c29566c586ac8b511.zip |
Cleanup
Diffstat (limited to 'src/Wallabag/CoreBundle/Helper')
-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 | ||