Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible to script Metadata?
#5
(09-25-2020, 09:13 AM)rich2005 Wrote: 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.

Well I only planned to use it in a bash script, (the only scripting I have any experience in) so I'm not real worried about syntax as I only ever need to get it right one. Tongue
I've used it before for some things, but not for a while. I did find the link below both informative for using exiftool, and what fields are best to use.
https://libre-software.net/edit-metadata-exiftool/

(09-25-2020, 09:13 AM)rich2005 Wrote: 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

JPEG's are easy for sure, comparatively. The nice thing is that it at least prompts you on export with a comment box so you can see if it's there or not. It's crazy though that you can't have your default comment that's set in the preferences automatically applied to your default save options. At least they could give you the same button you get in the Image Properties > Comment window where you can just click a button to apply your comment.

   

PNG's are are weird for sure. I don't really care where the metadata ends up, as longs as it's attached in a somewhat relevant field. It should hitch a ride with the image until someone (or some site) intentionally strips the metadata. I am still an avid user of xnviewmp even though it doesn't play nice with gimp, and is what I used in my testing as well. It shows both jpeg and png comments, so I'm satisfied with that.

(09-25-2020, 09:13 AM)rich2005 Wrote: 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.

Thank you for this, but it doesn't appear to do anything for me. I tried before and after adding a comment but see nothing in in a window, or in the error console. Here is the output of my system console.


Code:
comment-Warning: no comment

comment-Warning: Gimp'd by akovia


Thanks a lot!
Akovia
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: