Always use imagecreatetruecolor(), we're not using PHP 4.0 anymore :)

This commit is contained in:
Kijin Sung 2021-01-19 14:42:11 +09:00
parent aeba5b2192
commit adb6203f1b

View file

@ -632,16 +632,7 @@ class FileHandler
}
// create temporary image with target size
$thumb = NULL;
if(function_exists('imagecreateTRUEcolor'))
{
$thumb = imagecreateTRUEcolor($resize_width, $resize_height);
}
else if(function_exists('imagecreate'))
{
$thumb = imagecreate($resize_width, $resize_height);
}
$thumb = imagecreatetruecolor($resize_width, $resize_height);
if(!$thumb)
{
return FALSE;