Media_GetMetadata ( container )
This variant of Media_GetMetadata is intended for images. For the sound variant of the function please refer here.
This function returns any metadata text associated with the specified image.
|container||The location of the image.
The container parameter can be:
Most image files also have a small block of metadata text associated with them that gives basic information like image creation date and the software used to create it.
A common response might look like this:
©swr: Adobe Photoshop 7.0
©day: 2003-11-16 13:07:07
Creation software is specified by “
©swr” and creation date by “
You can use the Media_ExtractInfo function to isolate specific elements of the metadata. See the examples below.
To get the metadata for an image in a field named Picture and put it into a field named Meta:
Set Field [ MyTable::Meta ;
Media_GetMetadata ( MyTable::Picture ) ]
To use Media_ExtractInfo in order to isolate the creation software and place the result in a field named Creator:
Set Field [ MyTable::Creator ;
“IPTC/©swr” ) ]