]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug in IM php resize code
authorCash Costello <cash.costello@gmail.com>
Sun, 7 Jun 2009 00:09:09 +0000 (00:09 +0000)
committerCash Costello <cash.costello@gmail.com>
Sun, 7 Jun 2009 00:09:09 +0000 (00:09 +0000)
lib/resize.php

index 19af7b45130df4db1c4198e31a0a3284990e4890..e3facf614b170d3c71d27b08bc59546d1edf87b1 100644 (file)
                                                                                $thumbname,\r
                                                                                $image_sizes['large_image_width'],\r
                                                                                $image_sizes['large_image_height'], \r
-                                                                               true); \r
+                                                                               false); \r
                if (!$rtn_code)\r
                        return false;\r
                $file->largethumb = $prefix."largethumb".$filestorename;\r
                                $width = $height;\r
                        }\r
                        \r
-                       // if input arguments = square, no need to use above calculations (which can have round-off errors)\r
                        if ($maxheight == $maxwidth) {\r
+                               // if input arguments = square, no need to use above calculations (which can have round-off errors)\r
                                $newwidth = $maxwidth;\r
                                $newheight = $maxheight;\r
                        } else {\r