Drop-in replacement for Load Image that outputs the original filename as a string. Wire it into Save Image to auto-name your outputs. Preserves the real filename even after mask-editor / clipspace painting.
https://github.com/kymeraj/comfyui-load-image-with-filename
git clone https://github.com/kymeraj/comfyui-load-image-with-filename
comfy node install comfyui-load-image-with-filename