mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix #1707 support thumbnail height value of 'auto' in any type
This commit is contained in:
parent
856f2af743
commit
633bc340e7
3 changed files with 16 additions and 10 deletions
|
|
@ -543,7 +543,13 @@ class FileHandler
|
|||
{
|
||||
$target_type = 'jpg';
|
||||
}
|
||||
|
||||
|
||||
// Automatically set resize_height if it is 'auto'
|
||||
if ($resize_height === 'auto')
|
||||
{
|
||||
$resize_height = round($resize_width / ($width / $height));
|
||||
}
|
||||
|
||||
// create temporary image having original type
|
||||
if ($type === 'gif' && function_exists('imagecreatefromgif'))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue