mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Make JPG quality in document/comment thumbnails configurable, too
This commit is contained in:
parent
94efb351f7
commit
68076b40c6
8 changed files with 20 additions and 3 deletions
|
|
@ -656,6 +656,10 @@ class commentItem extends BaseObject
|
|||
{
|
||||
$thumbnail_type = $config->thumbnail_type ?: 'crop';
|
||||
}
|
||||
if(!$config->thumbnail_quality)
|
||||
{
|
||||
$config->thumbnail_quality = 75;
|
||||
}
|
||||
|
||||
if(!$this->isAccessible())
|
||||
{
|
||||
|
|
@ -785,7 +789,7 @@ class commentItem extends BaseObject
|
|||
|
||||
if($source_file)
|
||||
{
|
||||
$output = FileHandler::createImageFile($source_file, $thumbnail_file, $width, $height, 'jpg', $thumbnail_type);
|
||||
$output = FileHandler::createImageFile($source_file, $thumbnail_file, $width, $height, 'jpg', $thumbnail_type, $config->thumbnail_quality);
|
||||
}
|
||||
|
||||
// Remove source file if it was temporary
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue