Extensions & MediaWiki robchurch on 21 Aug 2007 11:40 pm
MediaFunctions
I’ve added some basic EXIF metadata extraction support to the MediaFunctions extension, following a thread on wikitech-l, which uses Tim’s excellent work on media handlers, so we can do things like:
{{#mediaexif:File.jpg|Make}}
I’ve also introduced a {{#mediadimensions}} parser function, which fetches the natural “dimensions string” from the file – for images, this returns a width and height, e.g. “800×600″; for audio, a duration, e.g. “1m30s”, etc.
The MediaFunctions extension is in Subversion, but not live on Wikimedia sites at this time.
on 22 Aug 2007 at 8:23 am 1.Magnus said …
Damn, you beat me to it!
Did you add some “meta-meta-keywords”? For example, there are several different keys and formats for EXIF dates. I thought about adding a new wiki-internal keyword “_DATE” (or something) that pareses the “usual suspects” into a single format, which could then be the basis for categories etc. Pattern matching is kinda hard to do with parser functions…
Magnus
on 22 Aug 2007 at 8:32 am 2.robchurch said …
No, not at present; as I said, it’s quite basic. Standard names and formats needs to be a consideration, of course.