Skip to content

Commit

Permalink
Fix metadata extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Apr 15, 2024
1 parent e3fdb34 commit 37f633e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jcvi/graphics/grabseeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def convert_image(
mainfile = op.join(outdir, pf + ".main.jpg")
labelfile = op.join(outdir, pf + ".label.jpg")
img = Image(filename=pngfile)
exif = dict((k, v) for k, v in img.metadata.items() if k.startswith("exif:"))
exif = dict((k, img.metadata.get(k)) for k in img.metadata if k.startswith("exif:"))

# Rotation, slicing and cropping of main image
if rotate:
Expand Down

0 comments on commit 37f633e

Please sign in to comment.