Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Editing metadata in python
#3
(09-24-2019, 08:50 AM)Ofnuts Wrote: 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.

Thanks.  I am not quite sure what to make of this:  "But the 'data' is in XML format, so you have to use the Python XML library to alter it."

Would you please elaborate?

Thanks!
Reply


Messages In This Thread
Editing metadata in python - by vndep - 09-24-2019, 01:26 AM
RE: Editing metadata in python - by Ofnuts - 09-24-2019, 08:50 AM
RE: Editing metadata in python - by vndep - 09-24-2019, 09:29 AM
RE: Editing metadata in python - by Ofnuts - 09-24-2019, 11:49 AM
RE: Editing metadata in python - by YeboiXd - 10-04-2021, 10:09 PM
RE: Editing metadata in python - by Ofnuts - 10-05-2021, 12:11 AM
RE: Editing metadata in python - by YeboiXd - 10-05-2021, 03:06 PM

Forum Jump: