johnmnemonik / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

better exif support needed #153

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Giving easy access to the exif data is nice, However, many of the dictionary 
keys in the exif object contain spaces. This makes using the exif data in 
templates virtually impossible.

a possible route might be a template tag that takes a photo object and a 
string equating to the key in the EXIF property

{% exif myphoto "Image Make" %}

Original issue reported on code.google.com by e3satter...@gmail.com on 20 Mar 2010 at 11:05

GoogleCodeExporter commented 8 years ago
simple implementation for a tag that returns the exif prop from an image.

Properties must be separated by an underscore

assuming photo is a Photo() object

   {% exif photo Image_Model %}
   {% exif photo EXIF_Flash %}
   {% exif photo EXIF_ExifImageLength %} x {% exif photo EXIF_ExifImageWidth %}

Original comment by e3satter...@gmail.com on 25 Nov 2010 at 4:16

Attachments: