Add option to always reencode images #2601

This commit is contained in:
Kijin Sung 2025-10-25 12:36:18 +09:00
parent e676949669
commit 2a9b336988
5 changed files with 25 additions and 0 deletions

View file

@ -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'] ||