From 1d6a9ac25aa0ee1a51b3fcc70bc4247ff14c54e2 Mon Sep 17 00:00:00 2001 From: tcit Date: Mon, 19 May 2014 15:24:11 +0200 Subject: Option for setting quality --- inc/poche/pochePictures.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/poche/pochePictures.php') 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) break; case 'image/jpeg': case 'image/jpg': - imagejpeg($im, $fullpath); // default quality is 75% + imagejpeg($im, $fullpath, REGENERATE_PICTURES_QUALITY); break; case 'image/png': - imagepng($im, $fullpath); + imagepng($im, $fullpath, REGENERATE_PICTURES_QUALITY); break; } imagedestroy($im); -- cgit v1.2.3