mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 12:52:19 +09:00
Add option to convert PNG images to JPG
This commit is contained in:
parent
b286cb15a9
commit
c60d475aaf
6 changed files with 16 additions and 0 deletions
|
|
@ -1046,6 +1046,10 @@ class fileController extends file
|
|||
{
|
||||
$convert = array($image_width, $image_height, 'jpg', $config->image_autoconv_quality ?: 75, 0);
|
||||
}
|
||||
if($config->image_autoconv['png2jpg'] && function_exists('imagepng') && $image_type === 3)
|
||||
{
|
||||
$convert = array($image_width, $image_height, 'jpg', $config->image_autoconv_quality ?: 75, 0);
|
||||
}
|
||||
if($config->image_autoconv['webp2jpg'] && function_exists('imagewebp') && $image_type === 18)
|
||||
{
|
||||
$convert = array($image_width, $image_height, 'jpg', $config->image_autoconv_quality ?: 75, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue