=) got it working
This commit is contained in:
parent
3f6a9cc576
commit
215a0efb86
2
DEV
2
DEV
|
@ -1,12 +1,12 @@
|
|||
[[[ Picseal ]]]
|
||||
|
||||
|
||||
[[ MVP Plan ]]
|
||||
|
||||
[ C ]
|
||||
libexiv --> exif read/write
|
||||
libwolfss --> crypto generation
|
||||
|
||||
|
||||
[ Functions ]
|
||||
# load image file
|
||||
picseal.init(image_file)
|
||||
|
|
12
exif_r.py
12
exif_r.py
|
@ -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 ("*** *** *** *** *** *** ***")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue