mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Always use 'fill' thumbnail type by default
This commit is contained in:
parent
e7f3f75839
commit
f98964467c
2 changed files with 4 additions and 4 deletions
|
|
@ -1148,7 +1148,7 @@ class fileController extends file
|
|||
if ($result)
|
||||
{
|
||||
$thumbnail_name = $file_info['tmp_name'] . '.thumbnail.jpg';
|
||||
if (FileHandler::createImageFile($file_info['tmp_name'], $thumbnail_name, $adjusted['width'], $adjusted['height'], 'jpg', 'crop', $adjusted['quality']))
|
||||
if (FileHandler::createImageFile($file_info['tmp_name'], $thumbnail_name, $adjusted['width'], $adjusted['height'], 'jpg', 'fill', $adjusted['quality']))
|
||||
{
|
||||
$file_info['thumbnail'] = $thumbnail_name;
|
||||
}
|
||||
|
|
@ -1156,7 +1156,7 @@ class fileController extends file
|
|||
}
|
||||
else
|
||||
{
|
||||
$result = FileHandler::createImageFile($file_info['tmp_name'], $output_name, $adjusted['width'], $adjusted['height'], $adjusted['type'], 'crop', $adjusted['quality'], $adjusted['rotate']);
|
||||
$result = FileHandler::createImageFile($file_info['tmp_name'], $output_name, $adjusted['width'], $adjusted['height'], $adjusted['type'], 'fill', $adjusted['quality'], $adjusted['rotate']);
|
||||
}
|
||||
|
||||
// Change to information in the output file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue