GetJPEGFileICCProfileToFile
Page manipulation
Description
Extracts the APP2 ICC profile of a JPEG file
Syntax
Delphi
Function GetJPEGFileICCProfileToFile(Const FileName, ProfileFileName: WideString): Integer;Parameters
| FileName | Path to the JPEG |
|---|---|
| ProfileFileName | Target path for the extracted profile |
Return values
The profile size in bytes, 0 when the file carries no APP2 profile
Remarks
Multi-chunk profiles are assembled in chunk-number order, even when their APP2 markers appear out of order; sequence headers are stripped, and incomplete, duplicate or inconsistent chunk sequences return 0 without replacing the profile destination