=) got it working
This commit is contained in:
parent
3f6a9cc576
commit
215a0efb86
2
DEV
2
DEV
|
@ -1,12 +1,12 @@
|
||||||
[[[ Picseal ]]]
|
[[[ Picseal ]]]
|
||||||
|
|
||||||
|
|
||||||
[[ MVP Plan ]]
|
[[ MVP Plan ]]
|
||||||
|
|
||||||
[ C ]
|
[ C ]
|
||||||
libexiv --> exif read/write
|
libexiv --> exif read/write
|
||||||
libwolfss --> crypto generation
|
libwolfss --> crypto generation
|
||||||
|
|
||||||
|
|
||||||
[ Functions ]
|
[ Functions ]
|
||||||
# load image file
|
# load image file
|
||||||
picseal.init(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
|
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("*** *** *** *** *** *** ***")
|
||||||
print(exif.get_date_time())
|
print(exif.get_tag_string('Exif.Photo.DateTimeOriginal'))
|
||||||
print ("*** *** *** *** *** *** ***")
|
print ("*** *** *** *** *** *** ***")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ def main():
|
||||||
|
|
||||||
def parseArgs():
|
def parseArgs():
|
||||||
print("***** ***** ***** *****")
|
print("***** ***** ***** *****")
|
||||||
print (" ** Pic * Seal ** ")
|
print(" ** Pic * Seal ** ")
|
||||||
print("***** ***** ***** *****\n")
|
print("***** ***** ***** *****\n")
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('-i', '--image', required=False, help="source image file")
|
parser.add_argument('-i', '--image', required=False, help="source image file")
|
||||||
|
|
Loading…
Reference in New Issue