Here is a question. I want to be able to delete select image files, but rename the rest in a loop. The reason I do this is because each item I have is told that it has a certain number of images, that’s it. So, for an example, let’s say the item is a T-shirt, and I have the image name set to “tshirt” and I tell the item it has 5 images. It knows to grab the images like so:
Now, let’s say I want to drop the number of images to 4, and delete tshirt-3.jpg. What’s the best way to rename the images after to move them down one? So, rename tshirt-4.jpg to tshirt-3.jpg, and tshirt-5.jpg to tshirt-4.jpg.
Any feedback appreciated.