]> git.mxchange.org Git - friendica.git/commitdiff
Always coalesce, if it is not a multi-frame image it won't hurt anyway
authorDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 14:27:22 +0000 (16:27 +0200)
committerDomovoy <domovoy@errlock.org>
Sun, 22 Jul 2012 14:27:22 +0000 (16:27 +0200)
include/Photo.php

index 06b90bb88af147a8cc3d49ed8b315c80818c68e9..86254738791740a11da6603f8aec26a88c26c808 100644 (file)
@@ -52,8 +52,8 @@ class Photo {
              */
             $this->image->setFormat($this->image->getImageFormat());
 
-            // If it is a gif, it may be animated, get it ready for any future operations
-            if($this->image->getFormat() !== "GIF") $this->image = $this->image->coalesceImages();
+            // Always coalesce, if it is not a multi-frame image it won't hurt anyway
+            $this->image = $this->image->coalesceImages();
         } else {
             if (!array_key_exists($type,$this->types)){
                 $type='image/jpeg';