Apply suggestions from code review of branch jpeg-capture-in-stacking
Co-authored-by: Beth Probert <beth_probert@outlook.com>
This commit is contained in:
parent
0751457ed3
commit
83e0e08ccc
3 changed files with 17 additions and 16 deletions
|
|
@ -250,6 +250,7 @@ class BaseCamera(Thing):
|
|||
try:
|
||||
image.save(jpeg_path, quality=95, subsampling=0)
|
||||
try:
|
||||
# Load EXIF metadata from image so it can be added to.
|
||||
exif_dict = piexif.load(jpeg_path)
|
||||
exif_dict["Exif"][piexif.ExifIFD.UserComment] = json.dumps(
|
||||
metadata
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue