Copying PNG TextualData Tags from one file to another

Started by busahou, September 21, 2024, 06:09:06 PM

Previous topic - Next topic

busahou

Hello!

I am messing around with Stable Diffusion. One feature of the program I am using to do so is that it embeds the parameters used to generate the image inside of a PNG TextualData Tag called 'Parameters', and can read these data from any image generated by that program to bring up the same settings used to make it.

I have edited an image that I generated, but I still want to have these metadata in the edited image. I thought to use ExifTool as I have done similar things like this with it in the past, but can't for the life of me figure out how to make it write anything to the parameters tag, let alone copy it.

Does anyone know how to do this? I tried searching these forums but the closest thing I found was for copying the parameters from PNG to JPG.

StarGeek

Your command would be
exiftool -TagsFromFile source.png -Parameters edited.png

This requires version 12.81, Mar. 27, 2024, as that is when the Parameters tag was added.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype