ImageEn, unit iexMetaHelpers |
|
ReadIPTCDescriptionAndKeywordsFromFile
Declaration
function ReadIPTCDescriptionAndKeywordsFromFile(const sFilename: string;
out sDescription: string;
ssKeywords: TStrings = nil) : Boolean;
Description
Retrieves the description and keywords from the IPTC data of a file. The following records are returned:
◼PhotoShop_IPTC_Records/IPTC_PS_Caption
◼PhotoShop_IPTC_Records/IPTC_PS_Keywords
Returns false if the file does not contain an IPTC description or keywords.
Note: ssKeywords can be nil
// Show keyword and description of selected file
if ReadIPTCCameraFieldsFromFile( MyFileListBox.Filename, sDescription, ssKeywords ) then
begin
lblDescription .Caption := sDescription;
lblKeywords .Caption := ssKeywords.CommaText;
end
else
begin
lblDescription .Caption := '';
lblKeywords .Caption := '';
end;