]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug where gifs were messed up in resizing
authorCash Costello <cash.costello@gmail.com>
Sat, 20 Jun 2009 17:13:01 +0000 (17:13 +0000)
committerCash Costello <cash.costello@gmail.com>
Sat, 20 Jun 2009 17:13:01 +0000 (17:13 +0000)
lib/resize.php

index 974f32e9e2d7e17ae256d4a1eedbc217df6a9a58..ebbf587d70e327ff89f3b3588e50a76de0102ba7 100644 (file)
                \r
                // use the default IM filter (windowing filter), I think 1 means default blurring or number of lobes\r
                $img->resizeImage($newwidth, $newheight, imagick::FILTER_LANCZOS, 1);\r
+               $img->setImagePage($newwidth, $newheight, 0, 0);\r
                \r
                if ($img->writeImage($output_name) != true) {\r
                        $img->destroy();\r