(bug 1017) fix thumbnails of animated gifs
authorJens Frank <jeluf@users.mediawiki.org>
Sun, 28 May 2006 13:06:48 +0000 (13:06 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sun, 28 May 2006 13:06:48 +0000 (13:06 +0000)
RELEASE-NOTES
includes/Image.php

index 5270a5a..846de9a 100644 (file)
@@ -363,6 +363,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Format edit comments in Recent Changes feed
 * Switch incorrectly ordered column headers on Recent Changes feed diffs
 * (bug 6117) Use message for history feed description, add German localization
+* (bug 1017) fixed thumbnails of animated gifs.
 
 
 == Compatibility ==
index cf92d97..b219642 100644 (file)
@@ -1097,6 +1097,8 @@ class Image
                        $cmd  =  wfEscapeShellArg($wgImageMagickConvertCommand) .
                                " {$quality} -background white -size {$width} ".
                                wfEscapeShellArg($this->imagePath) .
+                               // Coalesce is needed to scale animated GIFs properly (bug 1017).
+                               ' -coalesce ' .
                                // For the -resize option a "!" is needed to force exact size,
                                // or ImageMagick may decide your ratio is wrong and slice off
                                // a pixel.