The mg.metadata.photo_info application

Requires The mg.media.photo application.

Django models

mg.metadata.photo_info Application models

Purpose of this application is to gather information about camera parameters for shooting a photo. The only defined model saves sensibility, aperture, focal length, exposure time, and flash presence.

This data can be transparently extracted from Exif data, through the relevant Updaters.

Data can be exposed in a generic way with the relevant Templatetags.

digraph photo_info {
photo [shape = "box", label="Photo\nmg.media.photo"];
photo_info [shape = "box", label="PhotoInfo"];

photo_info -> photo [headlabel = "1", taillabel = "1"];
}

The PhotoInfo model

class mg.metadata.photo_info.models.PhotoInfo
photo

Pointer to a given Photo.

iso

ISO sensitivity.

flash

Whether flash fired

focal_length

Focal length

aperture

Aperture

exposure_time

Exposure time

Updaters

ExifPhotoInfo

For Photos only, copy relevant fields from Exif data contained in original photo file to relevant fields of PhotoInfo.

Templatetags

The mg_photo_info templatetag library

In order to use these templatetags, you must use the following code in your template:

{% load mg_photo_info %}

photo_info

This inclusion tag retrieves the HTML code to display photo information, if available.

{% photo_info photo %}

It actually uses the template named photo_info/photo_info.html.