JPEG EXIF Metadata Extraction

Extract EXIF metadata from JPEG images

MIT License

Try the API

{
  "exif": {
    "ApertureValue": 2.2750071245369052,
    "BrightnessValue": -2.485082304526749,
    "ColorSpace": 1,
    "ComponentsConfiguration": "0x01020300",
    "CreateDate": "2017:03:11 16:20:27",
    "DateTimeOriginal": "2017:03:11 16:20:27",
    "ExifImageHeight": 2448,
    "ExifImageWidth": 3264,
    "ExifVersion": "0x30323231",
    "ExposureCompensation": 0,
    "ExposureMode": 0,
    "ExposureProgram": 2,
    "ExposureTime": 0.25,
    "FNumber": 2.2,
    "Flash": 16,
    "FlashpixVersion": "0x30313030",
    "FocalLength": 4.15,
    "FocalLengthIn35mmFormat": 29,
    "ISO": 250,
    "LensInfo": [
      4.15,
      4.15,
      2.2,
      2.2
    ],
    "LensMake": "Apple",
    "LensModel": "iPhone 6 Plus back camera 4.15mm f/2.2",
    "MakerNote": "0x4170706c6520694f530000014d4d000f000100090000000100000004000200070000022e000000c80003000700000068000002f600040009000000010000000100050009000000010000006600060009000000010000005d0007000900000001000000010008000a000000030000035e000900090000000100000213000c000a0000000200000376000d00090000000100000013000e00090000000100000000000f000900000001000000020010000900000001000000210014000900000001000000050000000062706c69737430304f1102000b000a0013009500ce002601600187019e0175017d01590186019701970188010a0009000d008a00e2004d018e0195018e018a017f018301e5005f00050171010a0009000a009200f4004c0183014e011e0175018301920187001400130020000b000a0009009200ff004f01580103010d013b0190018c0143001200110012000c000b000d009100fc00520105010c010601220194017a0136001000100010000b000a0008003d00e7000601c300f000ec00fd008301240112000f000f0010000a0009000700070040008f00a700cf00ec00dc002f0141000f000f000f0010000a000a000800080008000b003f008300b4004a0018000f000e000f000e0010000b000c000a00090007000900100054007b00340011000f000e000e000e0010000d000d000b000a00070008000d006c009a00560010000f000e000e000e0010000e000d000b000a00070008000e007c009500710010000e000f000d000e000f000f000d000d000c000a0007000c003e00970046000f000e000f000e000f0010000f000d000d000c000c0009000c006b00eb005e000e000e000d000f000e0010000f000e000e000f000f000e000b003700720021000e000e000d000e000e00100010000f0010001000100010000f000e0010000f000e000e000e000e000f00100010001000100010001100100010000f000f000e000e000e000e000e000f0010000008000000000000020100000000000000010000000000000000000000000000020c62706c6973743030d4010203040506070855666c6167735576616c75655565706f63685974696d657363616c6510011300008b1c5827c9921000123b9aca000811171d232d2f383a000000000000010100000000000000090000000000000000000000000000003f00000a7f00000ac2fffffea3000070e7fffffcbf000010db00000003000000100000001500000040",
    "MeteringMode": 5,
    "SceneCaptureType": 0,
    "SceneType": "0x01",
    "SensingMethod": 2,
    "ShutterSpeedValue": 2.0000519399574093,
    "SubSecTimeDigitized": "716",
    "SubSecTimeOriginal": "716",
    "SubjectArea": [
      1631,
      1223,
      1795,
      1077
    ],
    "WhiteBalance": 0
  },
  "gps": {
    "GPSAltitude": 12.003604902667629,
    "GPSAltitudeRef": 0,
    "GPSDateStamp": "2017:03:11",
    "GPSDestBearing": 67.56965944272446,
    "GPSDestBearingRef": "T",
    "GPSHPositioningError": 10,
    "GPSImgDirection": 67.56965944272446,
    "GPSImgDirectionRef": "T",
    "GPSLatitude": [
      51,
      29,
      53.15
    ],
    "GPSLatitudeRef": "N",
    "GPSLongitude": [
      0,
      11,
      3.5
    ],
    "GPSLongitudeRef": "W",
    "GPSSpeed": 0,
    "GPSSpeedRef": "K",
    "GPSTimeStamp": [
      16,
      20,
      26
    ]
  },
  "image": {
    "ExifOffset": 210,
    "GPSInfo": 1684,
    "Make": "Apple",
    "Model": "iPhone 6 Plus",
    "ModifyDate": "2017:03:11 16:20:27",
    "Orientation": 3,
    "ResolutionUnit": 2,
    "Software": "10.2.1",
    "XResolution": 72,
    "YCbCrPositioning": 1,
    "YResolution": 72
  },
  "interoperability": {},
  "makernote": {
    "error": "Unable to extract Makernote information as it is in an unsupported or unrecognized format."
  },
  "thumbnail": {
    "Compression": 6,
    "ResolutionUnit": 2,
    "ThumbnailLength": 5135,
    "ThumbnailOffset": 2088,
    "XResolution": 72,
    "YResolution": 72
  }
}

Install & Use

Use

curl -X POST -d '{"input_file":"data://jhurliman/jhurliman/IMG_2910.JPG"}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/jhurliman/JPEGEXIFMetadataExtraction/0.1.0