GetJPEGFileOrientation

Page manipulation

Description

Reads the EXIF orientation of a JPEG file

Syntax

Delphi

Function GetJPEGFileOrientation(Const FileName: WideString): Integer;

Parameters

FileNamePath to the JPEG

Return value

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