CBLExifHelpers

Objective-C


@interface CBLExifHelpers : NSObject

Swift

class ExifHelpers : NSObject

Helpers for working with EXIF values.

  • Returns a camera live view orientation value from the given EXIF rotation value.

    Declaration

    Objective-C

    + (CBLCameraLiveViewFrameOrientation)universalOrientationFromExifRotation:
        (CBLExifRotation)rotation;

    Swift

    class func universalOrientation(from rotation: ExifRotation) -> LiveViewFrameOrientation

    Parameters

    rotation

    The EXIF rotation value.

    Return Value

    The live view frame orientation for the given EXIF value.

  • Returns an EXIF rotation value from the given camera live view orientation value.

    Declaration

    Objective-C

    + (CBLExifRotation)exifRotationFromUniversalOrientation:
        (CBLCameraLiveViewFrameOrientation)orientation;

    Swift

    class func exifRotation(fromUniversalOrientation orientation: LiveViewFrameOrientation) -> ExifRotation

    Parameters

    orientation

    The live view orientation value.

    Return Value

    The EXIF rotation for the given live view orientation value.

  • Returns a date object for the given EXIF date string.

    Declaration

    Objective-C

    + (NSDate *_Nullable)dateFromExifDateString:(NSString *_Nonnull)dateString;

    Swift

    class func date(fromExifDateString dateString: String) -> Date?

    Parameters

    dateString

    The EXIF date string.

    Return Value

    A date object, or nil if the date string is invalid.