summaryrefslogtreecommitdiff
path: root/rapid/metadataphoto.py
diff options
context:
space:
mode:
authorJulien Valroff <julien@kirya.net>2011-05-23 21:05:08 +0200
committerJulien Valroff <julien@kirya.net>2011-05-23 21:05:08 +0200
commit85952027591c5da285f924e4d2d013a4493c1845 (patch)
treed234ed0ee5e97c29f666d0d9580584efb5c8441e /rapid/metadataphoto.py
parent18c39a3fad0f9bf92840f79bcea5d72ed396403d (diff)
parentb494e83efd647b035c6bee2fa09a33fa383ef4a3 (diff)
Merge commit 'upstream/0.4.1'
Diffstat (limited to 'rapid/metadataphoto.py')
-rwxr-xr-xrapid/metadataphoto.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/rapid/metadataphoto.py b/rapid/metadataphoto.py
index 8a760c4..0442a86 100755
--- a/rapid/metadataphoto.py
+++ b/rapid/metadataphoto.py
@@ -20,7 +20,6 @@
import re
import datetime
import sys
-#~ import subprocess
import config
import types
import time
@@ -219,6 +218,20 @@ class MetaData(pyexiv2.metadata.ImageMetadata):
except:
return missing
+ def copyright(self, missing=''):
+ """returns copyright exif information"""
+ try:
+ return self['Exif.Image.Copyright'].value.strip()
+ except:
+ return missing
+
+ def artist(self, missing=''):
+ """returns exif artis information"""
+ try:
+ return self['Exif.Image.Artist'].value.strip()
+ except:
+ return missing
+
def short_camera_model(self, includeCharacters = '', missing=''):
"""
Returns in shorterned string format the camera model used to record the image.
@@ -285,7 +298,7 @@ class MetaData(pyexiv2.metadata.ImageMetadata):
else:
return missing
-
+
def date_time(self, missing=''):
"""
Returns in python datetime format the date and time the image was