=) got it working

This commit is contained in:
JohnE 2016-08-11 02:14:14 -07:00
parent 3f6a9cc576
commit 215a0efb86
4 changed files with 12 additions and 4 deletions

2
DEV
View File

@ -1,12 +1,12 @@
[[[ Picseal ]]]
[[ MVP Plan ]]
[ C ]
libexiv --> exif read/write
libwolfss --> crypto generation
[ Functions ]
# load image file
picseal.init(image_file)

View File

@ -1,9 +1,17 @@
import gi
gi.require_version('GExiv2', '0.10')
from gi.repository import GExiv2
exif = GExiv2.Metadata("space.jpg")
if not GExiv2.initialize():
raise RuntimeError("GExiv2 couldn't be initialized")
#exif = GExiv2.Metadata("space.jpg")
exif = GExiv2.Metadata()
exif.open_path("bmw_rim_full.jpg")
#exif.open_path("space.jpg")
print("*** *** *** *** *** *** ***")
print(exif.get_date_time())
print(exif.get_tag_string('Exif.Photo.DateTimeOriginal'))
print ("*** *** *** *** *** *** ***")