This is the Gimp comment? Typically Made by Gimp and set in Edit -> Preferences -> Default New Image -> Comment
Someone might have a way but all I see is a procedure for reading a comment nothing for writing.
All your images in Gimp .xcf format? Exporting to PS .psd format will keep most layers although text layers are rasterized. The comment goes (at least it does here). That should be scriptable.
edit:
Just in case your images are not Gimp .xcf but filename.png or filename.jpg then you can use ImageMagick and the mogrify command (use it in the folder with the images) say:
This permanently alters the files. Always best to work with copies when using mogrify.
Someone might have a way but all I see is a procedure for reading a comment nothing for writing.
All your images in Gimp .xcf format? Exporting to PS .psd format will keep most layers although text layers are rasterized. The comment goes (at least it does here). That should be scriptable.
edit:
Just in case your images are not Gimp .xcf but filename.png or filename.jpg then you can use ImageMagick and the mogrify command (use it in the folder with the images) say:
Code:
mogrify -strip *.png
This permanently alters the files. Always best to work with copies when using mogrify.