X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FImage.php;h=d69b01ad4d9e016180cca7916f2d4178116b2565;hb=ab5a447bc2261522d0f5560f8933dd928a6fc6e3;hp=8787db05283cdeb6bb6759e545de4e6bbe96867a;hpb=390f6be42ea9f71be3e1abd7eeb4b32b0c674c37;p=friendica.git diff --git a/src/Object/Image.php b/src/Object/Image.php index 8787db0528..d69b01ad4d 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -22,7 +22,6 @@ namespace Friendica\Object; use Exception; -use Friendica\Core\System; use Friendica\DI; use Friendica\Util\Images; use Imagick; @@ -123,7 +122,11 @@ class Image $this->image->setFormat($format); // Always coalesce, if it is not a multi-frame image it won't hurt anyway - $this->image = $this->image->coalesceImages(); + try { + $this->image = $this->image->coalesceImages(); + } catch (Exception $e) { + return false; + } /* * setup the compression here, so we'll do it only once @@ -625,7 +628,7 @@ class Image $stamp1 = microtime(true); file_put_contents($path, $string); - DI::profiler()->saveTimestamp($stamp1, "file", System::callstack()); + DI::profiler()->saveTimestamp($stamp1, "file"); } /**