From e3b00bcaf580177ecdbdb2ee90dfc263b1c2d79e Mon Sep 17 00:00:00 2001 From: tcit Date: Mon, 19 May 2014 15:59:18 +0200 Subject: Fixed bug for png images --- inc/poche/pochePictures.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/poche/pochePictures.php b/inc/poche/pochePictures.php index 97eb56ac..8f86d2f2 100644 --- a/inc/poche/pochePictures.php +++ b/inc/poche/pochePictures.php @@ -97,7 +97,7 @@ function download_pictures($absolute_path, $fullpath) imagejpeg($im, $fullpath, REGENERATE_PICTURES_QUALITY); break; case 'image/png': - imagepng($im, $fullpath, REGENERATE_PICTURES_QUALITY); + imagepng($im, $fullpath, ceil(REGENERATE_PICTURES_QUALITY / 100 * 9)); break; } imagedestroy($im); -- cgit v1.2.3