ImageEn, unit iexBitmaps

TIOParams.IPTC_Info

TIOParams.IPTC_Info


Declaration

property IPTC_Info: TIEIPTCInfoList;


Description

A list of all IPTC information contained in a file. View object details at TIEIPTCInfoList.

IPTC records can contains text, objects and images. Applications can read/write information from IPTC_Info using string objects or a memory buffer.
Each IPTC_Info item has a record number and a dataset number. These values specify the type of data contained in the item, according to IPTC - NAA Information Interchange Model Version 4 (See: www.iptc.org).
For JPEG files ImageEn can read/write IPTC fields from the APP13 marker.
ImageEn can also read/write IPTC textual information of PhotoShop (access In Photoshop under "File Info"). View a list IPTC Photoshop items.

Note: You can output all fields using WriteTo


Demo

Demo  Demos\InputOutput\IPTC\IPTC.dpr


Examples

// Read the PhotoShop image description
ImageEnView1.IO.LoadFromFile('C:\image.jpg');
Idx := ImageEnView1.IO.Params.IPTC_Info.IndexOf(2, 120);
Caption := ImageEnView1.IO.Params.IPTC_Info.StringItem[idx];

// write the image description
ImageEnView1.IO.Params.IPTC_Info.StringItem[idx] := 'This is the new caption';
ImageEnView1.IO.SaveToFile('D:\image.jpg');

// Apply InputICCProfile (AdobeRGB1998.icc) color profile to image and output as OutputICCProfile (Defaults to sRGB)
// Note: This permanently changes the colors of the image
ImageEnView1.IO.LoadFromFile('C:\out.ppm');
ImageEnView1.IO.Params.InputICCProfile.LoadFromFile('C:\AdobeRGB1998.icc');
ImageEnView1.IO.Params.InputICCProfile.ConvertBitmap( ImageEnView1.IEBitmap, ie24RGB, ImageEnView1.IO.Params.OutputICCProfile );



See Also

Photoshop IPTC Constants
IPTC_Photoshop
ReadIPTCField
WriteIPTCField
ClearIPTCField