I have many images of varying extensions (jpeg,jpg,png) contained in many different directories, many of which my be contained in other folders for organizing.
Folder 1/ Folder A/ Image 01.jpg Image 02.png Folder 2/ Folder B/ Folder C/ Image 03.jpeg Image 04.png
The hierarchy and folders change depending on what I am working on. I usually need to append the images parent folder as the preffix, and give the pages a number suffix of Page 001,002 etc.
I have been normally going into each folder and batch naming all images in the folder with the program Pyrenamer, but this takes significant time. 50 jobs for 50 folders for example.
I know a script could be made (preferably a nautilus script) that I can use on a single folder containing the many folders to accomplish the job.
For example, "Image 01.jpg" would get renamed to "Folder A - Page 001.jpg", while "Image 04.png" would be renamed to "Folder C - Page 004.png". The images are in a particular order, and need to renamed and numbered in the SAME order as before, just with a proper prefix and suffix.
Pyrenamer can accomplish the suffix, but only allows renaming using the current directory (not parent), making it useless the needed prefix.
My terminal knowledge is limited, as is my programming knowledge. Any help would be greatly appreciated and would greatly speed up my workflow.