[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Extraction of metadata from different bitmap image types. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 315 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
BitmapMetadataHandler:: (9 methods):
doApp13()
getExif()
addMetadata()
getMetadataArray()
Jpeg()
PNG()
GIF()
Tiff()
getTiffByteOrder()
Class: BitmapMetadataHandler - X-Ref
Class to deal with reconciling and extracting metadata from bitmap images.doApp13( $app13 ) X-Ref |
This does the photoshop image resource app13 block of interest, IPTC-IIM metadata is stored here. Mostly just calls doPSIR and doIPTC param: string $app13 String containing app13 block from jpeg file |
getExif( $filename, $byteOrder ) X-Ref |
Get exif info using exif class. Basically what used to be in BitmapHandler::getMetadata(). Just calls stuff in the Exif class. Parameters are passed to the Exif class. param: string $filename param: string $byteOrder |
addMetadata( $metaArray, $type = 'other' ) X-Ref |
No description |
getMetadataArray() X-Ref |
Merge together the various types of metadata the different types have different priorites, and are merged in order. This function is generally called by the media handlers' getMetadata() return: array Metadata array |
Jpeg( $filename ) X-Ref |
No description |
PNG( $filename ) X-Ref |
No description |
GIF( $filename ) X-Ref |
No description |
Tiff( $filename ) X-Ref |
This doesn't do much yet, but eventually I plan to add XMP support for Tiff. (PHP's exif support already extracts but needs some further processing because PHP's exif support is stupid...) param: string $filename return: array The metadata. |
getTiffByteOrder( $filename ) X-Ref |
Read the first 2 bytes of a tiff file to figure out Little Endian or Big Endian. Needed for exif stuff. param: string $filename The filename return: string 'BE' or 'LE' or false |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |