aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
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
parent03e501dedda33bdc662aae3308c4b69d26e1cf4b (diff)
downloadwallabag-1d6a9ac25aa0ee1a51b3fcc70bc4247ff14c54e2.tar.gz
wallabag-1d6a9ac25aa0ee1a51b3fcc70bc4247ff14c54e2.tar.zst
wallabag-1d6a9ac25aa0ee1a51b3fcc70bc4247ff14c54e2.zip
Option for setting quality
Diffstat (limited to 'inc/poche')
-rwxr-xr-xinc/poche/config.inc.default.php1
-rw-r--r--inc/poche/pochePictures.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/inc/poche/config.inc.default.php b/inc/poche/config.inc.default.php
index edc42fc9..0e82f0cd 100755
--- a/inc/poche/config.inc.default.php
+++ b/inc/poche/config.inc.default.php
@@ -31,6 +31,7 @@
31@define ('MODE_DEMO', FALSE); 31@define ('MODE_DEMO', FALSE);
32@define ('DEBUG_POCHE', FALSE); 32@define ('DEBUG_POCHE', FALSE);
33@define ('DOWNLOAD_PICTURES', FALSE); 33@define ('DOWNLOAD_PICTURES', FALSE);
34@define ('REGENERATE_PICTURES_QUALITY'), 75);
34@define ('CONVERT_LINKS_FOOTNOTES', FALSE); 35@define ('CONVERT_LINKS_FOOTNOTES', FALSE);
35@define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE); 36@define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE);
36@define ('SHARE_TWITTER', TRUE); 37@define ('SHARE_TWITTER', TRUE);
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);