(bug 16451) Fix application of scaling limits for animated GIFs.
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 3 Aug 2009 15:01:51 +0000 (15:01 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 3 Aug 2009 15:01:51 +0000 (15:01 +0000)
commite5343317b8fed849f34fd908f764f691bc58f522
treea88943e542f0678e150feb39f3d4507b1872ad16
parent45130adc365fa261a16ccd2c77ddf194cf9dbc26
(bug 16451) Fix application of scaling limits for animated GIFs.
* Creates a new media handler for GIF files, and extracts metadata such as duration, whether or not the GIF is looped, and the number of frames.
* Uses the extracted metadata for the long file description.
* Considers number of frames in the calculation of image area (multiplies by width and height to get the "time-area", or so to speak).

After this patch is deployed, the work-around to disable GIF scaling on Wikimedia sites can be eliminated.
includes/AutoLoader.php
includes/DefaultSettings.php
includes/media/Bitmap.php
includes/media/GIF.php [new file with mode: 0644]
includes/media/GIFMetadataExtractor.php [new file with mode: 0644]
languages/messages/MessagesEn.php