Dotclear 2.26
|
Image metadata. More...
Public Member Functions | |
getMeta () | |
loadFile ($filename) | |
Static Public Member Functions | |
static | readMeta ($filename) |
Protected Member Functions | |
readXMP ($filename) | |
readIPTC ($filename) | |
readEXIF ($filename) | |
Protected Attributes | |
$xmp = [] | |
$iptc = [] | |
$exif = [] | |
$properties | |
$xmp_reg | |
$iptc_ref | |
$iptc_to_property | |
$exif_to_property | |
Image metadata.
This class reads EXIF, IPTC and XMP metadata from a JPEG file.
|
static |
Read metadata
Returns all image metadata in an array as defined in $properties
.
string | $filename | Image file path |
Referenced by dcMedia\imageMetaCreate().
getMeta | ( | ) |
Get metadata
Returns all image metadata in an array as defined in $properties
. Should call loadFile()
before.
References $properties.
loadFile | ( | $filename | ) |
Load file
Loads a file and read its metadata.
string | $filename | Image file path |
References readIPTC(), and readXMP().
|
protected |
Read XMP
Reads XML metadata and assigns values to $xmp
.
string | $filename | Image file path |
Referenced by loadFile().
|
protected |
Read IPTC
Reads IPTC metadata and assigns values to $iptc
.
string | $filename | Image file path |
References $iptc.
Referenced by loadFile().
|
protected |
Read EXIF
Reads EXIF metadata and assigns values to $exif
.
string | $filename | Image file path |
|
protected |
Referenced by readXMP().
|
protected |
Referenced by readIPTC().
|
protected |
|
protected |
array $properties Final properties array
Referenced by getMeta().
|
protected |
|
protected |
|
protected |
|
protected |