aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/image.class.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/include/image.class.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/include/image.class.php b/admin/include/image.class.php
index 101309911..fd231f337 100644
--- a/admin/include/image.class.php
+++ b/admin/include/image.class.php
@@ -547,6 +547,9 @@ class image_ext_imagick implements imageInterface
function crop($width, $height, $x, $y)
{
+ $this->width = $width;
+ $this->height = $height;
+
$this->add_command('crop', $width.'x'.$height.'+'.$x.'+'.$y);
return true;
}
@@ -583,6 +586,9 @@ class image_ext_imagick implements imageInterface
function resize($width, $height)
{
+ $this->width = $width;
+ $this->height = $height;
+
$this->add_command('filter', 'Lanczos');
$this->add_command('resize', $width.'x'.$height.'!');
return true;