Passed -size hint to convert, as recommended in the convert manpage. This gives a...
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 7 Sep 2005 16:01:42 +0000 (16:01 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 7 Sep 2005 16:01:42 +0000 (16:01 +0000)
includes/Image.php

index 674ce74..87f2744 100644 (file)
@@ -1022,8 +1022,8 @@ class Image
                        # Specify white background color, will be used for transparent images
                        # in Internet Explorer/Windows instead of default black.
                        $cmd  =  $wgImageMagickConvertCommand .
-                               " -quality 85 -background white -geometry {$width} ".
-                               wfEscapeShellArg($this->imagePath) . " " .
+                               " -quality 85 -background white -size {$width}x{$height} ".
+                               wfEscapeShellArg($this->imagePath) . " -resize {$width}x{$height} " .
                                wfEscapeShellArg($thumbPath);                           
                        wfDebug("reallyRenderThumb: running ImageMagick: $cmd");
                        $conv = shell_exec( $cmd );