← All procedures

exif.read

Read when and where a JPEG photo was taken (EXIF time and GPS position)

CLI
Package
@procedures/exif · README
Path
["exif","read"]
CLI
mark exif read --path <string>
As data
{"$proc":["exif","read"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/exif/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["exif","read"], { path: "<path>" });
console.log(JSON.stringify(result));

From the command line

$ mark exif read --path <string>

As data, in a program

{ "$proc": ["exif", "read"], "input": { "path": "<path>" } }

Input

FieldTypeRequiredDefaultDescription
pathstringyesThe path of a JPEG file

Output

FieldTypeRequiredDefaultDescription
takenAtstringno
latnumberno
lonnumberno
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "path": {
        "type": "string",
        "minLength": 1,
        "description": "The path of a JPEG file"
      }
    },
    "required": [
      "path"
    ]
  },
  "output": {
    "type": "object",
    "properties": {
      "takenAt": {
        "type": "string"
      },
      "lat": {
        "type": "number"
      },
      "lon": {
        "type": "number"
      }
    },
    "additionalProperties": false
  }
}