Extension:UploadConvert

Category:Unmaintained extensions#UploadConvert Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
UploadConvert
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Special page Category:Special page extensions
Description Runs a utility against files uploaded that match a user-provided filter. Used (for instance) to convert bad image formats to better formats.
Author(s) ironiridistalk
Latest version 0.1.1-beta (2012-08-26)
MediaWiki Category:Extensions without MediaWiki version
PHP 5.2.3
License GNU General Public License 2.0
Download Category:Extensions in GitHub version control
README
Change Log
Category:All extensionsCategory:Extensions not in ExtensionJson

The UploadConvert extension allows you to execute a program when uploading a file, possibly changing the file or renaming it in the process. The original thrust of this extension was to provide a mechanism to avoid manually converting BMP images into PNG for upload.

It's possible to use UploadConvert for other utilities. For instance, you may wish to run an image optimizer on your PNG files (such as optipng) or validate a ZIP file's integrity (unzip -t). UploadConvert by default checks the return code from the executed command to determine success and can be configured to refuse an upload which fails to "convert".

The title of the extension is, admittedly, mostly search engine bait. Your author was unable to find any existing extension that would convert images on upload and hopes that this extension is easy to find for those that wish to do so.

Download

You may download a zip or a tarball straight from github at the link on the right. The GitHub repo page also includes version history, including historical versions as downloads. The only important file is (of course) UploadConvert.php.

Installation

See also

This extension was based, in part, on UploadPDF.

Category:All extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions not using extension registration Category:Extensions without MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:Special page extensions Category:Unmaintained extensions Category:UploadCreateFromRequest extensions