diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-06-20 17:13:01 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-06-20 17:13:01 +0000 |
commit | 0b9bcb1acb3435b2800bd038d2687f29eea9b2c7 (patch) | |
tree | 898e293e90b18d2b80800573c02f6f4469d8dcfe | |
parent | 72278f3d3ce9b3dff0b4f5e95ad400d14a79eb71 (diff) | |
download | elgg-0b9bcb1acb3435b2800bd038d2687f29eea9b2c7.tar.gz elgg-0b9bcb1acb3435b2800bd038d2687f29eea9b2c7.tar.bz2 |
fixed bug where gifs were messed up in resizing
-rw-r--r-- | lib/resize.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/resize.php b/lib/resize.php index 974f32e9e..ebbf587d7 100644 --- a/lib/resize.php +++ b/lib/resize.php @@ -350,6 +350,7 @@ // use the default IM filter (windowing filter), I think 1 means default blurring or number of lobes
$img->resizeImage($newwidth, $newheight, imagick::FILTER_LANCZOS, 1);
+ $img->setImagePage($newwidth, $newheight, 0, 0);
if ($img->writeImage($output_name) != true) {
$img->destroy();
|