ImageEn, unit imageenio

TImageEnIO.InjectJpegIPTC

TImageEnIO.InjectJpegIPTC


Declaration

function InjectJpegIPTC(const FileName: WideString): Boolean;


Description

Replaces the IPTC information in the specified JPEG file with the current IPTC (in Params) without loading or modifying the original image.

The method returns False if the operation could not be performed.


Example

// copy the IPTC info (not the image) from file one.jpg to the inside of file two.jpg, without loading any images
ImageEnView1.IO.ParamsFromFile('D:\one.jpg');
ImageEnView1.IO.InjectJpegIPTC('D:\two.jpg');

// removes IPTC info from image.jpg
ImageEnView1.IO.Params.IPTC_Info.Clear;
ImageEnView1.IO.InjectJpegIPTC('D:\image.jpg');