Manual:$wgMaxAnimatedGifArea

Details
Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnail. --what size?

ImageMagick doesn't do well with resource limits. Defaulting to 1 megapixel (1000x1000).