Allow thumbnails for GIF images (Closes #461)

This commit is contained in:
RainLoop Team 2015-02-17 18:54:32 +04:00
parent fdf3b614b4
commit 60f7cb3d84

View file

@ -7789,7 +7789,7 @@ class Actions
$sFileName = 'mailsotempfile://'.\MailSo\Base\Utils::Md5Rand($sFileNameOut);
$rTempResource = \fopen($sFileName, 'r+b');
$rTempResource = @\fopen($sFileName, 'r+b');
if (@\is_resource($rTempResource))
{
\MailSo\Base\Utils::MultipleStreamWriter($rResource, array($rTempResource));
@ -7953,6 +7953,9 @@ class Actions
case 'png':
$bResult = \function_exists('imagecreatefrompng');
break;
case 'gif':
$bResult = \function_exists('imagecreatefromgif');
break;
case 'jpg':
case 'jpeg':
$bResult = \function_exists('imagecreatefromjpeg');