Skip to main content
All CollectionsExport & Delivery
How to Rename Your Files in a Snap
How to Rename Your Files in a Snap

Rename AI generated output files in bulk and save hours

Helsinki avatar
Written by Helsinki
Updated over a week ago

What's this article about?

This guide is all about showing you how to automate renaming your files after Crop.photo has finished bulk editing them via one of its automation.

Getting Started

  1. Log in to Crop.photo: First, make sure you're logged into crop.photo.

  2. Go to Settings: Click on the gear ⚙️ icon next to your username, found at the bottom right corner, to get to the Settings page.

Let's Set Things Up!

  1. Once you're in Settings, look for an option that says Advanced Settings and click it.

  2. Here, you'll find a place where you can save the way you want Crop.photo to rename your files.

What's the Secret Sauce for Automated Renaming?

The "secret sauce" is actually a pattern you save that tells the system how you want your AI-edited files renamed. Don't worry; it's simple:

delimiter:_;output:${index=2}.${extension}
  • Delimiter: This is a special character that helps split up your file's original name into different parts. For instance, in the name "first_last_ID.jpg," the underscore "_" is the delimiter.

  • Output Pattern: This is how you want your new file name to look. You'll pick which parts of the original name to keep and in what order.

For example, if your files are named like "john_doe_123.jpg" and you just want the "123" part to be your new file name, you'll set:

  • Delimiter: _

  • Output Pattern: ${index=2}.${extension}

What's the Deal with 'Index' and Why Does It Start at 0?

In our examples, you may have noticed the term index followed by a number like 0, 1, or 2. You might be wondering, "What's that all about?"

Think of the index as a way to pinpoint a specific part of your file name you want to keep or use. It's like when you're choosing your favorite players in a lineup. The first player is at "position 0," the second at "position 1," and so on.

But wait, why does it start at 0 and not 1? Good question! In the tech world, counting often starts from 0. It's like a quirky rule of the game. So, when you see ${index=0}, it means you're picking the first part of your original file name, ${index=1} means you're picking the second part, and so on.

Now you know what an index is and why it starts at zero. Happy renaming! 🎉

Real-World Examples

Original File

Pattern

New File

andrea_piacquadio_3764203.jpg

delimiter: _, output: ${index=2}.${extension}

3764203.jpg

andrea_piacquadio_3764203.jpg

delimiter: _, output: ${index=0}_${index=1}.${extension}

andrea_piacquadio.jpg

andrea_piacquadio_3764203.jpg

delimiter: _, output: ${index=1}.${extension}

piacquadio.jpg

Why Use Multiple Patterns and How Do They Work?

Okay, so sometimes life—and file names—are a bit more complicated. Maybe you've got files named all sorts of ways, and you want to have a backup plan or two. That's where multiple patterns come into play.

delimiter:_;output:${index=2}.${extension}
delimiter:_;output:${index=1}.${extension}

Think of multiple patterns as your "Plan B" and "Plan C." If "Plan A" doesn't work out, the system will try the next one in line. It's like having a bench of players ready to go in case your star player is having an off day.

What Happens When a Part is Missing?

Let's say your first pattern aims to use the ${index=2} part, but it doesn't exist in the file name. No worries! The system will then try your second rule, which might be looking for ${index=1}.

For example, if your file is named "john_doe.jpg" and your first pattern is ${index=2}.${extension}, there is no "index 2" (player ID for example) part here. So, the system would try the next rule, maybe ${index=1}.${extension}, and rename the file to "doe.jpg."

What If None of the Rules Match?

Great question! If none of your rules fit the bill, the system will stick with the original file name. So, if your file is named "random.jpg" and none of your rules apply, it will stay as "random.jpg."

Now you have the flexibility and a solid backup plan (or two) for renaming your files. It's like having a full roster of options, ensuring you're always in the game! 🎉


Did this answer your question?