mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 20:02:15 +09:00
Add option to convert to WebP when resizing oversized images
This commit is contained in:
parent
9f75788491
commit
d27f89f730
5 changed files with 14 additions and 13 deletions
|
|
@ -87,7 +87,7 @@ class FileAdminController extends File
|
|||
$config->max_image_width = intval(Context::get('max_image_width')) ?: '';
|
||||
$config->max_image_height = intval(Context::get('max_image_height')) ?: '';
|
||||
$config->max_image_size_action = Context::get('max_image_size_action') ?: '';
|
||||
$config->max_image_size_same_format = Context::get('max_image_size_same_format') === 'Y' ? 'Y' : 'N';
|
||||
$config->max_image_size_same_format = strval(Context::get('max_image_size_same_format'));
|
||||
$config->max_image_size_admin = Context::get('max_image_size_admin') === 'Y' ? 'Y' : 'N';
|
||||
$config->image_quality_adjustment = max(50, min(100, intval(Context::get('image_quality_adjustment'))));
|
||||
$config->image_autorotate = Context::get('image_autorotate') === 'Y' ? true : false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue