mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-11 01:07:39 +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);
|
$sFileName = 'mailsotempfile://'.\MailSo\Base\Utils::Md5Rand($sFileNameOut);
|
||||||
|
|
||||||
$rTempResource = \fopen($sFileName, 'r+b');
|
$rTempResource = @\fopen($sFileName, 'r+b');
|
||||||
if (@\is_resource($rTempResource))
|
if (@\is_resource($rTempResource))
|
||||||
{
|
{
|
||||||
\MailSo\Base\Utils::MultipleStreamWriter($rResource, array($rTempResource));
|
\MailSo\Base\Utils::MultipleStreamWriter($rResource, array($rTempResource));
|
||||||
|
@ -7953,6 +7953,9 @@ class Actions
|
||||||
case 'png':
|
case 'png':
|
||||||
$bResult = \function_exists('imagecreatefrompng');
|
$bResult = \function_exists('imagecreatefrompng');
|
||||||
break;
|
break;
|
||||||
|
case 'gif':
|
||||||
|
$bResult = \function_exists('imagecreatefromgif');
|
||||||
|
break;
|
||||||
case 'jpg':
|
case 'jpg':
|
||||||
case 'jpeg':
|
case 'jpeg':
|
||||||
$bResult = \function_exists('imagecreatefromjpeg');
|
$bResult = \function_exists('imagecreatefromjpeg');
|
||||||
|
|
Loading…
Reference in a new issue