mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add option to always reencode images #2601
This commit is contained in:
parent
e676949669
commit
2a9b336988
5 changed files with 25 additions and 0 deletions
|
|
@ -1290,6 +1290,12 @@ class FileController extends File
|
|||
}
|
||||
}
|
||||
|
||||
// Check if this image should be reencoded anyway
|
||||
if (isset($config->image_always_reencode) && $config->image_always_reencode)
|
||||
{
|
||||
$force = true;
|
||||
}
|
||||
|
||||
// Convert image if adjusted
|
||||
if ($adjusted['width'] !== $image_info['width'] ||
|
||||
$adjusted['height'] !== $image_info['height'] ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue