From 0b9bcb1acb3435b2800bd038d2687f29eea9b2c7 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 20 Jun 2009 17:13:01 +0000 Subject: fixed bug where gifs were messed up in resizing --- lib/resize.php | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.3