Image_XMP Image_XMP(
string
$sFilename
)
|
|
Constructor
Parameters:
|
string |
$sFilename: |
- Name of the image file to access and extract XMP information from. |
Get a copy of all XMP tags extracted from the image
API Tags:
| Return: | - An array of XMP fields as it extracted by the XMPparse() function |
Returns the status of XMP parsing during instantiation
You'll normally want to call this method before trying to get XMP fields.
API Tags:
| Return: | Returns true if an APP1 segment was found to contain XMP metadata. |
array read_XMP_array_from_text(
$xmltext, string
$xml_text
)
|
|
Parses a string containing XMP data (XML), and returns an array which contains all the XMP (XML) information.
Parameters:
|
string |
$xml_text: |
- a string containing the XMP data (XML) to be parsed |
|
|
$xmltext: |
|
API Tags:
| Return: | - an array containing all xmp details retrieved. |
array _get_jpeg_header_data(
string
$filename
)
|
|
Reads all the JPEG header segments from an JPEG image file into an array
Parameters:
|
string |
$filename: |
- the filename of the JPEG file to read |
API Tags:
| Return: | - Array of JPEG header segments |
string _get_XMP_text(
string
$filename
)
|
|
Retrieves XMP information from an APP1 JPEG segment and returns the raw XML text as a string.
Parameters:
|
string |
$filename: |
- the filename of the JPEG file to read |
API Tags:
| Return: | - the string of raw XML text |