Update:
* Now using MediaWiki API for additional information
* revised sectioning of output:
** file (including image dimensions, URL, and stuff from {{Information}})
** meta (EXIF data etc.)
** description (in multiple languages, if available)
** licenses (some licenses now carry lots of additional information,
like link to license text/description, need to mention author, keep
file under same/similar license, need to distribute full text of
license, license logo etc), and "self-made" attribute
** versions (all versions that were uploaded, with date, size,
dimensions, uploader)
* nice XML error message if the requested file doesn't exist
* code now in MediaWiki SVN, under trunk/tools/commonsapi
This needs to be adapted to other templates (see [1] for an example),
but it does degrade gracefully (omits information if it can't find
it); license information should always be present.
License "finetuning" will be a problem, especially with language
variants (e.g., CC-BY-2.5-IT); this might have to be solved
programmatically to cover all cases (sigh).
If someone wants to co-maintain it on the stable toolserver, welcome! :-)
Otherwise, please help extending the software and fixing bugs, or just
try to break it and report the crime scene to me ;-)
Cheers,
Magnus
[1]
http://commons.wikimedia.org/wiki/Image:Gesammelte_Werke_(Thoma)_1_307.jpg