cm-TanakaKenji / ExifSample2

Getting an exif and other metadatas in image using CIImage.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ExifSample2

Getting an exif and other metadatas in image using CIImage.


We can get these datas from an image.

Optional(["{JFIF}": {
    DensityUnit = 0;
    JFIFVersion =     (
        1,
        0,
        1
    );
    XDensity = 72;
    YDensity = 72;
}, "{Exif}": {
    ApertureValue = "1.695993715632365";
    BrightnessValue = "4.390854184641933";
    ColorSpace = 1;
    ComponentsConfiguration =     (
        1,
        2,
        3,
        0
    );
    DateTimeDigitized = "2016:12:13 21:22:41";
    DateTimeOriginal = "2016:12:13 21:22:41";
    ExifVersion =     (
        2,
        2,
        1
    );
    ExposureBiasValue = 0;
    ExposureMode = 0;
    ExposureProgram = 2;
    ExposureTime = "0.0303030303030303";
    FNumber = "1.8";
    Flash = 16;
    FlashPixVersion =     (
        1,
        0
    );
    FocalLenIn35mmFilm = 28;
    FocalLength = "3.99";
    ISOSpeedRatings =     (
        25
    );
    LensMake = Apple;
    LensModel = "iPhone 7 back camera 3.99mm f/1.8";
    LensSpecification =     (
        "3.99",
        "3.99",
        "1.8",
        "1.8"
    );
    MeteringMode = 5;
    PixelXDimension = 4032;
    PixelYDimension = 3024;
    SceneCaptureType = 0;
    SceneType = 1;
    SensingMethod = 2;
    ShutterSpeedValue = "5.0589417280643";
    SubjectArea =     (
        2015,
        1511,
        2217,
        1330
    );
    SubsecTimeDigitized = 069;
    SubsecTimeOriginal = 069;
    WhiteBalance = 0;
}, "DPIWidth": 72, "Depth": 8, "Orientation": 1, "DPIHeight": 72, "PixelHeight": 3024, "ProfileName": sRGB IEC61966-2.1, "{MakerApple}": {
    1 = 4;
    12 =     (
        "0.46875",
        "1.050781"
    );
    13 = 16;
    14 = 4;
    15 = 2;
    16 = 1;
    17 = "96B82472-3160-4DBE-BA62-C11554C508AA";
    2 = <a0028d02 9b02a002 7d021902 22024b02 0f02e501 f9012502 54027a02 70026c02 7c028002 8e028202 70021202 f4018c02 f501b101 aa01a501 a601c301 00022b02 81028702 7c027702 50020f02 e2014502 7a017c01 8c018f01 94019701 8f018401 73026402 5b024602 1d022502 25026b01 4b004d00 9600ff00 5a017601 74017001 2c025902 58022f02 02020102 f9017f00 46004300 3c003c00 44009600 ec004201 00020602 0002f301 e1010202 1e013d00 3d003900 36003700 3b003c00 3a004100 4c02d701 c201ca01 d601d801 70003700 3f003800 33003000 35003400 33003500 4d022102 fd01de01 f6012c01 36003e00 3b003500 35002f00 35003400 38003400 34021c02 d701eb01 d4017900 3c003500 35003000 3b003200 3c003800 3b003400 da01fb01 9c011302 02013000 33004200 43003400 2f002d00 31003000 39003600 6b01e301 cd01dc01 72002f00 3c003e00 45004b00 41004500 33003100 38003c00 2102ec01 6b028f01 33003300 42004300 3c003500 43003800 2e003300 3e003b00 68024602 45029001 37003a00 36005300 3a003200 2b002600 2e003100 37004800 20023b02 2802e101 0a014a00 2a002f00 28002c00 32002f00 29002e00 44004800 0602eb01 0c021302 ec017401 a8003100 28002c00 27002700 2c003a00 42003a00 fd01f601 d701d601 fa01f101 bf012801 6e002700 34002e00 27002500 41005200>;
    20 = 5;
    3 =     {
        epoch = 0;
        flags = 1;
        timescale = 1000000000;
        value = 12607592179125;
    };
    4 = 1;
    5 = 227;
    6 = 238;
    7 = 1;
    8 =     (
        "-0.582177",
        "-0.03100643",
        "-0.8036999"
    );
}, "{TIFF}": {
    DateTime = "2016:12:13 21:22:41";
    Make = Apple;
    Model = "iPhone 7";
    Orientation = 1;
    ResolutionUnit = 2;
    Software = "10.2";
    XResolution = 72;
    YResolution = 72;
}, "{IPTC}": {
    DateCreated = 20161213;
    DigitalCreationDate = 20161213;
    DigitalCreationTime = 212241;
    TimeCreated = 212241;
}, "ColorModel": RGB, "PixelWidth": 4032])

About

Getting an exif and other metadatas in image using CIImage.


Languages

Language:Swift 100.0%