8157: ImageMetadata doesn't show metadata
This commit is contained in:
parent
da2c8aa644
commit
0301ddd1a6
@ -184,7 +184,9 @@ class MetadataView(Gtk.TreeView):
|
|||||||
retval = False
|
retval = False
|
||||||
with open(full_path, 'rb') as fd:
|
with open(full_path, 'rb') as fd:
|
||||||
try:
|
try:
|
||||||
metadata = GExiv2.Metadata(self.fd)
|
buf = fd.read()
|
||||||
|
metadata = GExiv2.Metadata()
|
||||||
|
metadata.open_buf(buf)
|
||||||
|
|
||||||
get_human = metadata.get_tag_interpreted_string
|
get_human = metadata.get_tag_interpreted_string
|
||||||
|
|
||||||
@ -238,7 +240,9 @@ class MetadataView(Gtk.TreeView):
|
|||||||
with open(full_path, 'rb') as fd:
|
with open(full_path, 'rb') as fd:
|
||||||
retval = False
|
retval = False
|
||||||
try:
|
try:
|
||||||
metadata = GExiv2.Metadata(fd)
|
buf = fd.read()
|
||||||
|
metadata = GExiv2.Metadata()
|
||||||
|
metadata.open_buf(buf)
|
||||||
for tag in TAGS:
|
for tag in TAGS:
|
||||||
if tag in metadata.get_exif_tags():
|
if tag in metadata.get_exif_tags():
|
||||||
retval = True
|
retval = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user