From: Domovoy Date: Sun, 22 Jul 2012 14:27:22 +0000 (+0200) Subject: Always coalesce, if it is not a multi-frame image it won't hurt anyway X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7a1f15c8dae30a69b7879d0c46eafee788098c5a;p=friendica.git Always coalesce, if it is not a multi-frame image it won't hurt anyway --- diff --git a/include/Photo.php b/include/Photo.php index 06b90bb88a..8625473879 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -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';