From e62be24e6b484a35b975056bf3a1bdfc1e78f5d2 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Dec 2022 12:53:21 +0000 Subject: [PATCH] Swap conditions --- src/Object/Image.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Object/Image.php b/src/Object/Image.php index a79f3a5688..6eb8620031 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -798,11 +798,11 @@ class Image } } - if (!$this->isImagick()) { + if ($this->isImagick()) { + $this->image->drawImage($draw); + } else { $this->width = imagesx($this->image); $this->height = imagesy($this->image); - } else { - $this->image->drawImage($draw); } $this->valid = true;