Skip to content
This repository has been archived by the owner on Oct 6, 2019. It is now read-only.

mudkipme/mediawiki-apng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediaWiki APNG Extension

This is an extension of MediaWiki to enable animated PNG support in unsupported browsers.

Currently, the only modern browser without APNG support is Microsoft Edge.

Demo: http://wiki.52poke.com/wiki/七賢人

This extension is based on David Mzareulyan's apng-canvas library. Thanks for the brilliant work.

Requirements

APNG extension requires MediaWiki 1.25 or higher. It is supported in all modern browsers and IE starting with version 10.

Installation

To install the extension, place the entire APNG directory within your MediaWiki extensions directory, then add the following line to your LocalSettings.php file:

wfLoadExtension( 'APNG' );

If you use a different domain for your $wgUploadPath, the web server is required to send a Access-Control-Allow-Origin: * header for PNG files.

For example, you can simply add the following lines to the location scope of your Nginx configuration:

if ($request_uri ~* \.png$) {
    add_header Access-Control-Allow-Origin *;
}

License

MIT