Skip to content
Snippets Groups Projects
Commit 0af71ead authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Add comment about exif metadata key 270.

parent 108d0394
No related tags found
1 merge request!49Draft: Add ID to metadata of the png file
Pipeline #853729 failed
......@@ -73,6 +73,7 @@ def save_plot(figures, plot_names, figure_ids=[], extension="png"):
elif all(x in str(type(fig)) for x in ["PIL", "ImageFile"]):
plot_path.append(plot_names[i] + ".tmp." + extension)
img_exif = fig.getexif()
# 270 or 0x010e is the EXIF identifier for "ImageDescription"
img_exif[270] = figure_ids[i]
fig.save(plot_path[i], exif=img_exif)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment