summaryrefslogtreecommitdiff
path: root/inc/image.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/image.php')
-rw-r--r--inc/image.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/image.php b/inc/image.php
index 6c5733b3..5c8e3321 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -163,7 +163,8 @@
return $this->image->destroy();
}
public function resize() {
- $this->image = $this->original;
+ $this->image = $this->original->clone();
+
$this->image->scaleImage($this->width, $this->height, false);
}
}