[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/media/ -> JpegMetadataExtractor.php (summary)

Extraction of JPEG image metadata. 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: 289 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JpegMetadataExtractor:: (3 methods):
  segmentSplitter()
  jpegExtractMarker()
  doPSIR()


Class: JpegMetadataExtractor  - X-Ref

Class for reading jpegs and extracting metadata.
see also BitmapMetadataHandler.

Based somewhat on GIFMetadataExtractor.

segmentSplitter( $filename )   X-Ref
No description

jpegExtractMarker( &$fh )   X-Ref
Helper function for jpegSegmentSplitter

param: resource &$fh File handle for JPEG file
return: string Data content of segment.

doPSIR( $app13 )   X-Ref
This reads the photoshop image resource.
Currently it only compares the iptc/iim hash
with the stored hash, which is used to determine the precedence
of the iptc data. In future it may extract some other info, like
url of copyright license.

This should generally be called by BitmapMetadataHandler::doApp13()

param: string $app13 Photoshop psir app13 block from jpg.
return: string If the iptc hash is good or not. One of 'iptc-no-hash',



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1