It is currently 27 Oct 2021, 07:54

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | 🡆 Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP
Sponsored content for World Food Program

Editing metadata in python

Asks Python related questions here
vndep
Forum Member
53rd Place
17 Post(s)

Editing metadata in python

Post#1 by vndep » 24 Sep 2019, 00:17


Are there any good tutorials/sample code for using python scrips to edit metadata (Image > Metadata > Edit Metadata)?

Thanks in advance?
GIMP Learn rocks...

tim
GL Blogger
1st Place
5571 Post(s)

Post#2 by tim » 24 Sep 2019, 18:09


[facebookvideo][/facebookvideo]I just looked in GIMP/Help/Procedure Browser and see:
gimp-image-get-metadata
gimp-image-set-metadata
they look simple enough to use.

Although, I don't know what the metadata string looks like I would try manually editing the metadata
and then use gimp-image-get-metadata to get the metadata string, then examine what the format looks like
then once you know what the format looks like you can easily build your own string with values you want to set and then use gimp-image-set-metadata to set it. and test it then use the front end to see if it properly loads the metadata for you to edit and such.
aka Tin
World Food Program | Good Deeds Forum

         


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | 🡆 Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests