GetJPEGFileOrientation

Page manipulation

Description

Reads the EXIF orientation of a JPEG file

Marker scanning stops at the end of the available input, so a truncated marker does not trigger repeated reads at end of file

Syntax

Delphi

Function GetJPEGFileOrientation(Const FileName: WideString): Integer;

Parameters

FileNamePath to the JPEG

Return values

The EXIF orientation tag 1..8, 0 when the file carries none or cannot be read

Remarks

Only the APP1 marker is scanned; the image is not decoded

See also

GetJPEGFileICCProfileToFile