ImageEn, unit imageenio

TImageEnIO.InjectJpegIPTC

TImageEnIO.InjectJpegIPTC


Declaration

function InjectJpegIPTC(const FileName: WideString): Boolean; overload;
function InjectJpegEXIF(const InputFileName, OutputFileName: WideString; pageIndex: Integer): boolean; overload;
function InjectJpegIPTC(InputStream, OutputStream: TStream): Boolean; overload;


Description

Replaces the IPTC information in the specified JPEG file with the current IPTC (in Params) without loading or modifying the original image.
For stream overload, OutputStream contains the modified stream.

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');