ImageEn, unit iexMetaHelpers |
|
WriteIPTCDescriptionAndKeywordsToFile
Declaration
procedure WriteIPTCDescriptionAndKeywordsToFile(const sFilename: string;
const sDescription: string;
ssKeywords: TStrings = nil);
Description
Saves a description and keywords to the IPTC data of a file. The following records are used:
◼PhotoShop_IPTC_Records/IPTC_PS_Caption
◼PhotoShop_IPTC_Records/IPTC_PS_Keywords
Note:
◼Specify the
SKIP_DESCRIPTION const to avoid updating the description
◼Pass ssKeywords as nil to avoid updating the keywords
// Save description and keywords to a file
WriteIPTCDescriptionAndKeywordsToFile( 'D:\MyImage.jpeg', edtDescription.Text, lbxKeywords.Items );
// Save description to a file
WriteIPTCDescriptionAndKeywordsToFile( 'D:\MyImage.jpeg', edtDescription.Text, nil );
// Save keywords to a file
WriteIPTCDescriptionAndKeywordsToFile( 'D:\MyImage.jpeg', SKIP_DESCRIPTION, lbxKeywords.Items );