A simple tool to bulk rename all pictures based on the .safetensors file in their folder.
Extract the tool, give it a folder address and press enter, it will:
scan each folder AND subfolders separately
find those that contains one (and only one) .safetensors + picture(s)
rename all the pictures with their .safetensors name with _# suffix
Works for Checkpoints/Loras or anything that has a .safetensors. It won't mess with folders with none or more than one .safetensors.
It will start with _1 suffix so if you want to use a custom preview for the model, just remove the suffix from the image you want.
Extremely useful if you download models with Jdownloader, Ever an hoarder wants order.

