GetJPEGFileICCProfileToFile

Page manipulation

Description

Extracts the APP2 ICC profile of a JPEG file

Syntax

Delphi

Function GetJPEGFileICCProfileToFile(Const FileName, ProfileFileName: WideString): Integer;

Parameters

FileNamePath to the JPEG
ProfileFileNameTarget path for the extracted profile

Return value

The profile size in bytes, 0 when the file carries no APP2 profile

Remarks

Multi-chunk profiles keep the first chunk; the 14-byte sequence header (signature, NUL, chunk number, chunk count) is stripped

See also

GetJPEGFileOrientation