Always coalesce, if it is not a multi-frame image it won't hurt anyway
This commit is contained in:
parent
c0d3d50fb5
commit
7a1f15c8da
|
@ -52,8 +52,8 @@ class Photo {
|
||||||
*/
|
*/
|
||||||
$this->image->setFormat($this->image->getImageFormat());
|
$this->image->setFormat($this->image->getImageFormat());
|
||||||
|
|
||||||
// If it is a gif, it may be animated, get it ready for any future operations
|
// Always coalesce, if it is not a multi-frame image it won't hurt anyway
|
||||||
if($this->image->getFormat() !== "GIF") $this->image = $this->image->coalesceImages();
|
$this->image = $this->image->coalesceImages();
|
||||||
} else {
|
} else {
|
||||||
if (!array_key_exists($type,$this->types)){
|
if (!array_key_exists($type,$this->types)){
|
||||||
$type='image/jpeg';
|
$type='image/jpeg';
|
||||||
|
|
Loading…
Reference in a new issue