When you generate a file using ComfyUI, metadata are added to the image automatically. Amongst the metadata, there is the full workflow including the prompt.
If you want to remove those data, you can use ImageMagick convert with the --strip
option.
convert image.png --strip image_strip.png
If you want to alter the original file, use mogrify
:
mogrify --strip image.png