09-24-2019, 08:50 AM
See pdb.gimp_image_get_metadata(image) and pdb.gimp_image_set_metadata(image,data). But the "data" is in XML format, so you have to use the Python XML library to alter it.
Unless you have a good reason to do that in Gimp, the tool of choice is usually ExifTool, and i you want to write a Python shell script around it, you can use the PyExifTool module.
Unless you have a good reason to do that in Gimp, the tool of choice is usually ExifTool, and i you want to write a Python shell script around it, you can use the PyExifTool module.