(bug 39297) Show a warning if thumbnails won't be animated
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 19 Aug 2012 01:19:53 +0000 (22:19 -0300)
committerCatrope <roan.kattouw@gmail.com>
Wed, 22 Aug 2012 01:31:51 +0000 (18:31 -0700)
commit876128f8c9f0ce6a8424336fd9374f29b5e6a001
tree7ecc9bb59bf2f2f5cb19517834383709e98a9161
parent7d5c68a805302569c4d1f30cb4be2896f4f2216f
(bug 39297) Show a warning if thumbnails won't be animated

This shows a warning on the image description page if the image
is animated, but thumbnails won't be. This includes
gif images that are too big, but also svg images that are animated,
and APNG files.

The message used is file-no-thumb-animation, but will also
check for file-no-thumb-animation-<image extension> so that
admins can do per image type explanations. Gif files have a built-in
explanation that is slightly different (Since its do to resolution).
Ideally one would pass the resolution limit to the gif message,
but I couldn't think of a clean way of doing that. (Also might be
complex to explain to user. They aren't used to resolution as a single
number but as a width x height type thing).

Moves isAnimatedImage from ImageHandler to MediaHandler, so I could
safely use it from any handler class.

Change-Id: I42ee11d889e0c41de53d0951f55a4338ca55311d
RELEASE-NOTES-1.20
includes/ImagePage.php
includes/filerepo/file/File.php
includes/media/GIF.php
includes/media/ImageHandler.php
includes/media/MediaHandler.php
includes/media/PNG.php
includes/media/SVG.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc