]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fixed bug for png images
authortcit <tcit@tcit.fr>
Mon, 19 May 2014 13:59:18 +0000 (15:59 +0200)
committertcit <tcit@tcit.fr>
Mon, 19 May 2014 13:59:18 +0000 (15:59 +0200)
inc/poche/pochePictures.php

index 97eb56ac660f4793c3dfa24ff513af094cf8dacd..8f86d2f210c8081ce528f038a9a8421a441ce21f 100644 (file)
@@ -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);