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
|
||||
with open(full_path, 'rb') as fd:
|
||||
try:
|
||||
metadata = GExiv2.Metadata(self.fd)
|
||||
buf = fd.read()
|
||||
metadata = GExiv2.Metadata()
|
||||
metadata.open_buf(buf)
|
||||
|
||||
get_human = metadata.get_tag_interpreted_string
|
||||
|
||||
@ -238,7 +240,9 @@ class MetadataView(Gtk.TreeView):
|
||||
with open(full_path, 'rb') as fd:
|
||||
retval = False
|
||||
try:
|
||||
metadata = GExiv2.Metadata(fd)
|
||||
buf = fd.read()
|
||||
metadata = GExiv2.Metadata()
|
||||
metadata.open_buf(buf)
|
||||
for tag in TAGS:
|
||||
if tag in metadata.get_exif_tags():
|
||||
retval = True
|
||||
|
Loading…
Reference in New Issue
Block a user