Extension:MediaFunctions (old)

MediaFunctions is an extension to access to the media (file or image) meta data :
 * returns the image size (human friendly) (ie: 23 ko).
 * returns the image size of the image in bytes (ie: 23552).
 * returns the mime type image (ie: image/jpeg).
 * returns the image main type (ie: image).
 * returns the image sub type (ie: jpeg).
 * returns the image path (ie: /wikipedia/commons/i/im/image.jpeg).
 * returns the image width in pixel (ie: 300).
 * returns the image height in pixel (ie: 200).

Install

 * copy the source on a file named MediaFunctions.php.
 * copy this file in the extensions directory.
 * add include_once('extensions/MediaFunctions.php'); in the LocalSettings.php file.

License
GNU General Public License (GPL)

Author: Stéphane Brunner