mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +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
|
|
@ -1247,7 +1247,7 @@ class FileController extends File
|
|||
$adjusted['height'] = (int)$resize_height;
|
||||
if (!$is_animated && $adjusted['type'] === $image_info['type'] && $config->max_image_size_same_format !== 'Y')
|
||||
{
|
||||
$adjusted['type'] = 'jpg';
|
||||
$adjusted['type'] = $config->max_image_size_same_format ?: 'jpg';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue