Add an interface for getting "standard" file metadata.
authorBrian Wolff <bawolff+wn@gmail.com>
Wed, 28 Aug 2013 23:09:07 +0000 (17:09 -0600)
committertgr <tgr.huwiki@gmail.com>
Tue, 29 Oct 2013 16:12:07 +0000 (16:12 +0000)
commit2cbd926e3493ac065547aa4e9b0b4035f1d192b9
tree0bfdb5819c5c04e70ca5a0a8cddbde2a4b6c13ed
parent78abc743eb3c81ffc75130b0dea52e81a2d642cb
Add an interface for getting "standard" file metadata.

Currently file metadata is handler dependant. However they usually
end up extracting the same type of data (author, date, etc) plus
one or two handler specific things. This adds a handler independent
interface for getting metadata that is likely to be common for all
types of file (At the moment, this is the exif/iptc/xmp information)

This commit used to also contain stuff adding parser functions,
which is now split to its own commit. This commit is needed
by a bunch of other commits, in particular I0d957891e0.

Change-Id: I43d9252f69dc5b8ba0b848cf40aa1b97329c85ae
13 files changed:
includes/filerepo/file/File.php
includes/media/ExifBitmap.php
includes/media/GIF.php
includes/media/MediaHandler.php [changed mode: 0644->0755]
includes/media/PNG.php
includes/media/SVG.php
tests/phpunit/data/media/README
tests/phpunit/data/media/Tux.svg [new file with mode: 0644]
tests/phpunit/includes/media/GIFTest.php
tests/phpunit/includes/media/JpegTest.php
tests/phpunit/includes/media/PNGTest.php
tests/phpunit/includes/media/SVGMetadataExtractorTest.php
tests/phpunit/includes/media/SVGTest.php [new file with mode: 0644]