jjk-code-otter / climate-indicator-manager

GNU General Public License v3.0
2 stars 1 forks source link

Add timestamp to png metadata #188

Open jjk-code-otter opened 1 year ago

jjk-code-otter commented 1 year ago

Currently, a time stamp appears in each image on the website, but it's not present in the png file metadata. A machine-readable creation date would be a good addition. It is also possible to record the software used to make the image. This information already appears in the csv files produced by the code, but could be added to the image metadata too.

This can now be done in matpotlib using the metadata keyword argument in savefig. See https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html

The webpage also includes links to the documentation for the individual image format writers, which further reference the relevant standards for each image type (pdf, svg, and png).