From 0af71ead26e7b67d44e9a74472fe04b505e29fdb Mon Sep 17 00:00:00 2001 From: "Mayr, Hannes" <hannes.mayr@stud.tu-darmstadt.de> Date: Mon, 21 Nov 2022 16:39:07 +0100 Subject: [PATCH] Add comment about exif metadata key 270. --- plotid/save_plot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plotid/save_plot.py b/plotid/save_plot.py index f4d4d3e..0c84709 100644 --- a/plotid/save_plot.py +++ b/plotid/save_plot.py @@ -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: -- GitLab