From 0cd46b825415cf4b9c9d3569de8c0d3540a713c9 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Sun, 28 May 2006 13:06:48 +0000 Subject: [PATCH] (bug 1017) fix thumbnails of animated gifs --- RELEASE-NOTES | 1 + includes/Image.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5270a5ad2e..846de9ab83 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/Image.php b/includes/Image.php index cf92d97bc7..b21964224d 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -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. -- 2.20.1