Requires The mg.core.element application.
This application permits to attach most used Camera data from Exif to Elements in the database, thus enabling classification of photos, and metadata inspection.
This class contains all information about a given lens. For build-in lenses (like for compact cameras), the maker and model fields are copied from Camera, and built_in points to the Camera.
Lens maker name.
Lens model name.
Minimal focal lenth
Maximal focal lenth. For non-zoom lenses, this field is equal to focal_length_min.
Minimal aperture. aperture = f/x with aperture_min = x
Maximal aperture. aperture = f/x with aperture_min = x. For fixed aperture lenses, this field is equal to aperture_min.
If non-null, this points to the camera where this lens is built-in.
Updates the camera data associated to the element. Parses the Exif data from the original file, copy relevant fields to the database.
In order to use these templatetags, you must use the following code in your template:
{% load mg_camera_info %}
This inclusion tag retrieves the HTML code to display camera information of element, if available.
{% camera_info element %}
It actually uses the template named camera_info/camera_info.html.