Added height, width, orientation, filesize to json, str)

This commit is contained in:
Rhet Turnbull
2020-07-03 12:28:26 -07:00
parent 4523224276
commit 8c3af0a4e4
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,3 @@
""" version info """
__version__ = "0.30.5"
__version__ = "0.30.6"

View File

@@ -806,6 +806,13 @@ class PhotoInfo:
"exif": exif,
"score": score,
"intrash": self.intrash,
"height": self.height,
"width": self.width,
"orientation": self.orientation,
"original_height": self.original_height,
"original_width": self.original_width,
"original_orientation": self.original_orientation,
"original_filesize": self.original_filesize,
}
return yaml.dump(info, sort_keys=False)
@@ -866,6 +873,13 @@ class PhotoInfo:
"exif": exif,
"score": score,
"intrash": self.intrash,
"height": self.height,
"width": self.width,
"orientation": self.orientation,
"original_height": self.original_height,
"original_width": self.original_width,
"original_orientation": self.original_orientation,
"original_filesize": self.original_filesize,
}
return json.dumps(pic)