Numbering several groups of photos with similar names and other details.

Advanced Renamer forum
#1 : 22/05-20 17:35
Eduardo
Eduardo
Posts: 1
I have more than 4000 photos of plants to rename that are inside a folder according to the plant code, example: bp0600-0699 / bp0700-0799 and so on ... The mess was big ... so first I left the most standardized possible ... Now inside each folder I already have the plants separated by code, but the names are not yet well standardized, because a plant has up to 12 photos of them. For you to understand, inside the BP0600-699 folder I have the files with the names below, and there are still more than 700 images in the same name style.

bp602-Crown-Prince-01.jpg
bp602-Crown-Prince-02-XXX4.jpg
bp602-Crown-Prince-02.jpg
bp602-Crown-Prince-03-XXX4-XXX4.jpg
bp602-CROWN-PRINCE-03.jpg
bp602-CROWN-PRINCE-04-XXX2.jpeg
bp603-Citrine-01.jpg
bp603-Citrine-02-XXX4.jpg
bp603-Citrine-02.jpg
bp603-Citrine-03-XXX4.jpg
bp603-Citrine-03.jpg
bp603-Citrine-04.jpg
bp603-Citrine-05.jpg


And I would like to know if you have any way of organizing numerically, and organizing other things, put the first letter of each word in uppercase and the rest in minuscule, commanding the name, removing the XXX4 or XXX2 and creating a numeric string before the extension, without skipping numbers. Like the example below.

bp602-Crown-Prince.jpg
bp602-Crown-Prince-01.jpg
bp602-Crown-Prince-02.jpg
bp602-Crown-Prince-03.jpg
bp602-Crown-Prince-04.jpg
bp602-Crown-Prince-05.jpg
bp603-Citrine-01.jpg
bp603-Citrine-02.jpg
bp603-Citrine-03.jpg
bp603-Citrine-04.jpg
bp603-Citrine-06.jpg
bp603-Citrine-07.jpg
bp603-Citrine-08.jpg

I know there will be several stages, but whatever you can help me with, I will be forever grateful .

Thank you!


22/05-20 17:35
#2 : 22/05-20 18:49
David Lee
David Lee
Posts: 1125
Remove everything after the plant names and use a Name collision rule to Append numbers to duplicate filenames. The collision rule will add an incrementing number to EVERY duplicating filename (including the first one). Appended numbers will be zero-padded to 3 digits.

Advanced Renamer applies the collision rule after all methods have been applied so you will need to run a second pass in order to fix the numbering.

First set the name collision rule: Append number & Separator: "-"

First pass (5 methods):

1) Replace method (set all extensions to .jpg):
Text to be replaced: jpeg
Replace with: jpg
Apply to: Extension

2) Remove pattern (strip everything after the plant name):
Pattern: -\d.*$
Use regular expressions
Apply to: Name

3) New Case:
Set lower case

4) New Case:
Set upper case first letter in every word

5) New Case (set first letter to lower case):
Set pattern to lower case
Pattern: ^\w
Use regular expressions

Run the batch and reload All Items.

Second pass (2 methods):

1) Renumber (reset numbers to start from zero and reduce zero-padding to 2 digits):
Number position: 2
Change to: Relative to existing number
Number difference: -1
Handle negative numbers: NOT SELECTED
Zero padding: Manual
Number length: 2

2) Remove pattern (delete "-00" from ends of filenames):
Pattern: -00$
Use regular expressions



22/05-20 18:49 - edited 22/05-20 18:55
#3 : 22/05-20 18:52
David Lee
David Lee
Posts: 1125


22/05-20 18:52 - edited 22/05-20 18:54