mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 16:58:07 +08:00
Allow thumbnails for GIF images (Closes #461)
This commit is contained in:
parent
fdf3b614b4
commit
60f7cb3d84
1 changed files with 4 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue