aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche/pochePictures.php
diff options
context:
space:
mode:
authortcit <tcit@tcit.fr>2014-05-19 15:24:11 +0200
committertcit <tcit@tcit.fr>2014-05-19 15:24:11 +0200
commit1d6a9ac25aa0ee1a51b3fcc70bc4247ff14c54e2 (patch)
tree03c3f7f8c54d1f922906f6c3e6a57b22eabeafdd /inc/poche/pochePictures.php
parent03e501dedda33bdc662aae3308c4b69d26e1cf4b (diff)
downloadwallabag-1d6a9ac25aa0ee1a51b3fcc70bc4247ff14c54e2.tar.gz
wallabag-1d6a9ac25aa0ee1a51b3fcc70bc4247ff14c54e2.tar.zst
wallabag-1d6a9ac25aa0ee1a51b3fcc70bc4247ff14c54e2.zip
Option for setting quality
Diffstat (limited to 'inc/poche/pochePictures.php')
-rw-r--r--inc/poche/pochePictures.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/poche/pochePictures.php b/inc/poche/pochePictures.php
index f10cc25e..97eb56ac 100644
--- a/inc/poche/pochePictures.php
+++ b/inc/poche/pochePictures.php
@@ -94,10 +94,10 @@ function download_pictures($absolute_path, $fullpath)
94 break; 94 break;
95 case 'image/jpeg': 95 case 'image/jpeg':
96 case 'image/jpg': 96 case 'image/jpg':
97 imagejpeg($im, $fullpath); // default quality is 75% 97 imagejpeg($im, $fullpath, REGENERATE_PICTURES_QUALITY);
98 break; 98 break;
99 case 'image/png': 99 case 'image/png':
100 imagepng($im, $fullpath); 100 imagepng($im, $fullpath, REGENERATE_PICTURES_QUALITY);
101 break; 101 break;
102 } 102 }
103 imagedestroy($im); 103 imagedestroy($im);