Global Variable

kCGImagePropertyOrientation

Declaration

let kCGImagePropertyOrientation: CFString

Discussion

The intended display orientation of the image. If present, this key is a CFNumber value with the same value as defined by the TIFF and EXIF specifications. The value specifies where the origin (0,0) of the image is located, as shown in Table 1. If not present, a value of 1 is assumed.

Table 1

Value

Location of the origin of the image

1

Top, left

2

Top, right

3

Bottom, right

4

Bottom, left

5

Left, top

6

Right, top

7

Right, bottom

8

Left, bottom