@snap/camera-kit
Version:
Camera Kit Web
21 lines • 574 B
TypeScript
export declare const enum Orientation {
TopLeft = 1,
TopRight = 2,
BottomRight = 3,
BottomLeft = 4,
LeftTop = 5,
RightTop = 6,
RightBottom = 7,
LeftBottom = 8
}
/**
* Parses JPEG EXIF metadata and returns Orientation tag of it, or undefined if not applicable.
*
* Adopted from https://stackoverflow.com/a/32490603
*
* @internal
* @param data JPEG binary.
* @returns Orientation tag value or undefined.
*/
export declare function extractJpegOrientationTag(data: ArrayBuffer): Orientation | undefined;
//# sourceMappingURL=exif.d.ts.map