Powershell scripts: to-png format conversion (jpeg, bmp, avif, webp, gif) and resize to square (fill space with white) and gif split
Warning: I just remembered something, the scripts are recursive so you can just drop your images folder inside and it will process them. On the other hand do not just drop it anywhere and run it, if you were to just drop it at c: and run it, it will look for images EVERYWHERE, It won't damage anything but will create a lot of trash. So remember to run it in it's own folder.
I posted a lora making guide i made a while ago. I normally use a couple of powershell scripts to change the extension of the files and to square images for resizing or upscaling.
I will add two three scripts one to change to png from jpeg, jpg, bmp, avif, webp and gif
The other does that and makes images square adding white bars on top and bottom or at the sides of the original image.
The final one simply extracts gifs to a bunch of pngs.
To use put the images into the script folder and do a left click at the .ps1 file and click run with powershell.
The scripts doesn't modify the original files just create new ones. The new format swapped files should end with "from_jpg" or whatever extension they were before. The resized files should be Resized + a six digit number.
Here's how to run it.