forked from wallabag/wallabag
Fixed bug for png images
This commit is contained in:
@ -97,7 +97,7 @@ function download_pictures($absolute_path, $fullpath)
|
|||||||
imagejpeg($im, $fullpath, REGENERATE_PICTURES_QUALITY);
|
imagejpeg($im, $fullpath, REGENERATE_PICTURES_QUALITY);
|
||||||
break;
|
break;
|
||||||
case 'image/png':
|
case 'image/png':
|
||||||
imagepng($im, $fullpath, REGENERATE_PICTURES_QUALITY);
|
imagepng($im, $fullpath, ceil(REGENERATE_PICTURES_QUALITY / 100 * 9));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
imagedestroy($im);
|
imagedestroy($im);
|
||||||
|
|||||||
Reference in New Issue
Block a user