Skip to content

Data

data

Data on exif tags, file extensions, film formats, and color spaces.

Attributes:

EXTENSION_LIST module-attribute

EXTENSION_LIST = (
    ".rw2",
    ".dng",
    ".crw",
    ".cr2",
    ".cr3",
    ".nef",
    ".orf",
    ".ori",
    ".raf",
    ".rwl",
    ".pef",
    ".ptx",
    ".arw",
)

File extensions for RAW formats.

FORMATS module-attribute

FORMATS = {
    "110": (17, 13),
    "135-half": (24, 18),
    "135": (36, 24),
    "xpan": (65, 24),
    "120-4.5": (56, 42),
    "120-6": (56, 56),
    "120": (70, 56),
    "120-9": (83, 56),
    "4x5": (127, 101.6),
    "5x7": (177.8, 127),
    "8x10": (254, 203.2),
    "11x14": (355.6, 279.4),
    "super16": (12.42, 7.44),
    "scope": (24.89, 10.4275),
    "flat": (24.89, 13.454),
    "academy": (24.89, 18.7),
    "super8": (5.79, 4.01),
    "8mm": (4.5, 3.3),
    "65mm": (48.56, 22.1),
    "IMAX": (70.41, 52.63),
}

Film frame formats with their size.

METADATA_KEYS module-attribute

METADATA_KEYS = [
    "GPSDateStamp",
    "ModifyDate",
    "FocalLengthIn35mmFormat",
    "ShutterSpeedValue",
    "FocalLength",
    "Make",
    "Saturation",
    "SubSecTimeOriginal",
    "SubSecTimeDigitized",
    "GPSImgDirectionRef",
    "ExposureProgram",
    "GPSLatitudeRef",
    "Software",
    "GPSVersionID",
    "ResolutionUnit",
    "LightSource",
    "FileSource",
    "ExposureMode",
    "Compression",
    "MaxApertureValue",
    "OffsetTime",
    "DigitalZoomRatio",
    "Contrast",
    "InteropIndex",
    "ThumbnailLength",
    "DateTimeOriginal",
    "OffsetTimeOriginal",
    "SensingMethod",
    "SubjectDistance",
    "CreateDate",
    "ExposureCompensation",
    "SensitivityType",
    "ApertureValue",
    "ExifImageWidth",
    "SensorLeftBorder",
    "FocalPlaneYResolution",
    "GPSImgDirection",
    "ComponentsConfiguration",
    "Flash",
    "Model",
    "ColorSpace",
    "LensModel",
    "XResolution",
    "GPSTimeStamp",
    "ISO",
    "CompositeImage",
    "FocalPlaneXResolution",
    "SubSecTime",
    "GPSAltitude",
    "OffsetTimeDigitized",
    "ExposureTime",
    "LensMake",
    "WhiteBalance",
    "BrightnessValue",
    "GPSLatitude",
    "YResolution",
    "GPSLongitude",
    "YCbCrPositioning",
    "Copyright",
    "SubjectDistanceRange",
    "SceneType",
    "GPSAltitudeRef",
    "FocalPlaneResolutionUnit",
    "MeteringMode",
    "GPSLongitudeRef",
    "SensorTopBorder",
    "SceneCaptureType",
    "FNumber",
    "LightValue",
    "BrightnessValue",
    "SensorWidth",
    "SensorHeight",
    "SensorBottomBorder",
    "SensorRightBorder",
    "ProcessingSoftware",
]

Exif data keys to include.

REC709_TO_XYZ module-attribute

REC709_TO_XYZ = np.array(
    [
        [0.4124564, 0.3575761, 0.1804375],
        [0.2126729, 0.7151522, 0.072175],
        [0.0193339, 0.119192, 0.9503041],
    ],
    dtype=DEFAULT_DTYPE,
)

Conversion matrix from Rec. 709 to CIE XYZ.

XYZ_TO_REC709 module-attribute

XYZ_TO_REC709 = np.array(
    [
        [3.2404542, -1.5371385, -0.4985314],
        [-0.969266, 1.8760108, 0.041556],
        [0.0556434, -0.2040259, 1.0572252],
    ],
    dtype=DEFAULT_DTYPE,
)

Conversion matrix from CIE XYZ to Rec. 709.