Skip to content

Instantly share code, notes, and snippets.

@berg
Created July 25, 2012 01:00
Show Gist options
  • Save berg/3173716 to your computer and use it in GitHub Desktop.
Save berg/3173716 to your computer and use it in GitHub Desktop.
Sketch of App.net image schema

Annotations

Photo

Not set in stone. Loosely based upon the OpenPhoto schema for Photo.

{
    "type": "wellknown:image",
    "values": {
        "metadata": {
            "orientation": 1,
            "camera_make": "Canon",
            "camera_model": "Canon EOS REBEL T2i",
            "exposure_time": "1/60",
            "f_number": "f/1.4",
            "lens": "Canon EF 50mm f/1.4 USM",
            "iso": 1600,
            "metering_mode": "Pattern",
            "flash": "Did not fire",
            "focal_length": "50mm",
            "altitude": 7,
            "latitude": 37.8052,
            "longitude": -122.4641,
            "date": "2012-07-05T04:53:52Z",
        },
        "formats": {
            "original": {
                "size": 22120,
                "width": 5184,
                "height": 3456,
                "rotation": 0,
                "url": "http://example.com/photo/original.jpg"
            },
            "200x200": {
                "size": 30,
                "width": 200,
                "height": 200,
                "cropped": true,
                "rotation": 0,
                "url": "http://example.com/photo/200x200.jpg"
            },
            "640x427": {
                "size": 120,
                "width": 640,
                "height": 427,
                "rotation": 0,
                "url": "http://example.com/photo/640x427.jpg"
            },
            "1024x683": {
                "size": 200,
                "width": 1024,
                "height": 683,
                "rotation": 0,
                "url": "http://example.com/photo/1024x683.jpg"
            },
            "2048x1366": {
                "size": 120,
                "width": 2048,
                "height": 1366,
                "rotation": 0,
                "url": "http://example.com/photo/2048x1366.jpg"
            }
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment