MediaWiki REL1_39
IPTC Class Reference

Class for some IPTC functions. More...

Static Public Member Functions

static getCharset ( $tag)
 take the value of 1:90 tag and returns a charset
 
static parse ( $rawData)
 This takes the results of iptcparse() and puts it into a form that can be handled by mediawiki.
 

Detailed Description

Class for some IPTC functions.

Definition at line 31 of file IPTC.php.

Member Function Documentation

◆ getCharset()

static IPTC::getCharset ( $tag)
static

take the value of 1:90 tag and returns a charset

Parameters
string$tag1:90 tag.
Returns
string Charset name or "?" Warning, this function does not (and is not intended to) detect all iso 2022 escape codes. In practise, the code for utf-8 is the only code that seems to have wide use. It does detect that code.

Definition at line 464 of file IPTC.php.

References wfDebugLog().

Referenced by parse().

◆ parse()

static IPTC::parse ( $rawData)
static

This takes the results of iptcparse() and puts it into a form that can be handled by mediawiki.

Generally called from BitmapMetadataHandler::doApp13.

See also
http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf
Parameters
string$rawDataThe app13 block from jpeg containing iptc/iim data
Returns
array IPTC metadata array

Definition at line 42 of file IPTC.php.

References getCharset(), and wfDebugLog().


The documentation for this class was generated from the following file: