Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible to script Metadata?
#3
I found your first post interesting. Unfortunately nothing, so guessing a plugin is not possible (or easy)  I do recall a similar question some time back on GimpChat.

Using exif probably the best way to go. I do not have it installed at the moment. Find the syntax a pita, although I once used the exiv2 gui. Any information on ease of use appreciated.

Other possibilities.  You can add comments with ImageMagick (IM) The mogrify command writes the file in place. Wildcard for lots of similar format or named single files
Code:
mogrify -comment "your replacement comment here"  *.jpg
or using a text file for input
Code:
mogrify -comment @file.txt filename.tif

Thinking along the lines of a series of 'boiler plate' text files.

Do not try this with  a gimp .xcf file it will trash it.

Observations.
jpegs are ok, the comment is written into the file and visible in Gimp  example: https://i.imgur.com/KqWFAUJ.jpg
png's are weird. Using Gimp to write the comment and properties it is there and visible. Using IM and the comment vanishes from Gimp but I can see it using XnViewMP https://i.imgur.com/4ybwH2X.jpg
Closest thing to an xcf might be a multi-page tif except text layers and Layer groups are flattened. https://i.imgur.com/YTPqJJI.jpg

For what use it might be, a little plugin (that is all I can ever manage, 'little') comment .py to display the comment.  Only saves you one click.


Attached Files
.zip   comment.zip (Size: 443 bytes / Downloads: 143)
Reply


Messages In This Thread
Possible to script Metadata? - by akovia - 09-17-2020, 04:31 PM
RE: Possible to script Metadata? - by akovia - 09-24-2020, 08:50 PM
RE: Possible to script Metadata? - by rich2005 - 09-25-2020, 09:13 AM
RE: Possible to script Metadata? - by akovia - 09-25-2020, 09:26 PM
RE: Possible to script Metadata? - by Ofnuts - 09-25-2020, 03:23 PM
RE: Possible to script Metadata? - by rich2005 - 09-26-2020, 10:29 AM
RE: Possible to script Metadata? - by Ofnuts - 09-26-2020, 09:15 PM
RE: Possible to script Metadata? - by rich2005 - 09-27-2020, 09:15 AM
RE: Possible to script Metadata? - by akovia - 11-16-2020, 03:33 PM

Forum Jump: