|
MediaWiki master
|
Class for reading jpegs and extracting metadata. More...
Static Public Member Functions | |
| static | doPSIR ( $app13) |
| This reads the Photoshop image resource. | |
| static | segmentSplitter ( $filename) |
| Function to extract metadata segments of interest from jpeg files based on GIFMetadataExtractor. | |
Class for reading jpegs and extracting metadata.
See also BitmapMetadataHandler.
Based somewhat on GIFMetadataExtractor.
Definition at line 23 of file JpegMetadataExtractor.php.
|
static |
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 the future it may extract some other info, like url of copyright license.
This should generally be called by BitmapMetadataHandler::doApp13()
| string | $app13 | Photoshop psir app13 block from jpg. |
| InvalidPSIRException |
Definition at line 221 of file JpegMetadataExtractor.php.
|
static |
Function to extract metadata segments of interest from jpeg files based on GIFMetadataExtractor.
We can almost use getimagesize to do this, but gis doesn't support having multiple app1 segments, and those can't extract xmp on files containing both exif and xmp data
| string | $filename | Name of the jpeg file |
| InvalidJpegException |
Definition at line 42 of file JpegMetadataExtractor.php.
References wfDebug().
Referenced by BitmapMetadataHandler\Jpeg().