get_png_metadata#
- class get_png_metadata(filename, output=False)[source]#
Read metadata from a PNG file. For use with images saved with hpv.savefig(). Requires pillow, an optional dependency. Metadata retrieval for PDF and SVG is not currently supported.
- Parameters:
filename (str) – the name of the file to load the data from
Example:
hpv.Sim().run(do_plot=True) hpv.savefig('hpvsim.png') hpv.get_png_metadata('hpvsim.png')