Fix #606 apply profile image size limit to GIF as well

This commit is contained in:
Kijin Sung 2016-10-22 21:35:37 +09:00
parent 371233c98c
commit 92384dca1d

View file

@ -772,8 +772,8 @@ class memberController extends member
FileHandler::removeFilesInDir($target_path);
$target_filename = sprintf('%s%d.%s', $target_path, $member_srl, $ext);
// Convert if the image size is larger than a given size or if the format is not a gif
if(($width > $max_width || $height > $max_height ) && $type != 1)
// Convert if the image size is larger than a given size
if($width > $max_width || $height > $max_height)
{
FileHandler::createImageFile($target_file, $target_filename, $max_width, $max_height, $ext);
}