Delete the last part of title in metadata

Started by borin, July 08, 2024, 03:58:47 AM

Previous topic - Next topic

borin

Hi everyone!

Could you help me with this problem:

This is the image title in metadata that I save after I generate AI image:

A computer screen displaying a detailed revenue management dashboard with various metrics. Minimalist stock photo --ar 16:9 --style raw Job ID: 540d92fc-d938-43f4-be32-6f8f73960909

And I want to remove the last part from "Minimalist stock photo ... " in metadata title

When I use:
exiftool -Caption-Abstract= *
it remove all the title, how can I remove only the last part?
please check attach file.

Please help me show the code

Thank you very much

1.PNG
2.PNG

greybeard

#1
As an example for the Caption-Abstract tag:

exiftool '-Caption-Abstract<${Caption-Abstract;s/Minimalist stock photo.*$//;}' file.jpg

(you may need double quotes if this is Windows)


borin