Page MenuHomePhabricator

previews, resized versions of animated gifs do not animate
Closed, DeclinedPublic


Author: difpublic

Upload animated gif.
Insert image in wiki page i.e. [[File:my_animated.gif|border|260px|right]]
Animation does not work when page is viewed.

ImageMagick is installed and correctly configured in LocalSettings.php:
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

The version is ImageMagick 6.2.8 04/17/08 Q16 so it seems to be up-to-date.

related to bug #1017

Version: 1.18.x
Severity: normal
OS: Linux
Platform: Other



Related Objects


Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:41 PM
bzimport set Reference to bz19173.
bzimport added a subscriber: Unknown Object (MLST).

difpublic wrote:

sample animated gif

Resized versions of this animated gif works on wikipedia but not on my mediawiki installation.


ayg wrote:

Check that the value of $wgMaxAnimatedGifArea is large enough.

difpublic wrote:

Thanks, but it does not have any effect. Is was not in LocalSettings.php so I added $wgMaxAnimatedGifArea = "1.0e9"; (far above the default) but this does not resolve the problem. As far as I can tell, my web host has not killed any processes so it must not be a resource problem.

sumanah wrote:

dify, are you still experiencing this problem in more recent versions of MediaWiki and Firefox?

sumanah wrote:

I can confirm this as a problem on test2. The full-resolution version of the animated file animates, but the preview does not and the other resolution/size versions do not.

The GIF is bigger than wgMaxAnimatedGifArea (at least on test2) and thus is not thumbnailed. It might be that the thumbs that were observed to be animating on wikipedia as mentioned in comment 1, were generated before wgMaxAnimatedGifArea was introduced.

Works as intended for me. Note that in comment 3, the user set a string. The expected value is however a number, so:

$wgMaxAnimatedGifArea = 1.0e9;
instead of
$wgMaxAnimatedGifArea = "1.0e9";