mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-23 09:32:15 -05:00
Option for setting quality
This commit is contained in:
parent
03e501dedd
commit
1d6a9ac25a
@ -31,6 +31,7 @@
|
|||||||
@define ('MODE_DEMO', FALSE);
|
@define ('MODE_DEMO', FALSE);
|
||||||
@define ('DEBUG_POCHE', FALSE);
|
@define ('DEBUG_POCHE', FALSE);
|
||||||
@define ('DOWNLOAD_PICTURES', FALSE);
|
@define ('DOWNLOAD_PICTURES', FALSE);
|
||||||
|
@define ('REGENERATE_PICTURES_QUALITY'), 75);
|
||||||
@define ('CONVERT_LINKS_FOOTNOTES', FALSE);
|
@define ('CONVERT_LINKS_FOOTNOTES', FALSE);
|
||||||
@define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE);
|
@define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE);
|
||||||
@define ('SHARE_TWITTER', TRUE);
|
@define ('SHARE_TWITTER', TRUE);
|
||||||
|
@ -94,10 +94,10 @@ function download_pictures($absolute_path, $fullpath)
|
|||||||
break;
|
break;
|
||||||
case 'image/jpeg':
|
case 'image/jpeg':
|
||||||
case 'image/jpg':
|
case 'image/jpg':
|
||||||
imagejpeg($im, $fullpath); // default quality is 75%
|
imagejpeg($im, $fullpath, REGENERATE_PICTURES_QUALITY);
|
||||||
break;
|
break;
|
||||||
case 'image/png':
|
case 'image/png':
|
||||||
imagepng($im, $fullpath);
|
imagepng($im, $fullpath, REGENERATE_PICTURES_QUALITY);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
imagedestroy($im);
|
imagedestroy($im);
|
||||||
|
Loading…
Reference in New Issue
Block a user