Batch renaming files from metadata?

The right place to speak and share about your experiences of GraphicConverter
vcaston
Posts: 8
Joined: Tue Feb 18, 2020 7:09 pm

Batch renaming files from metadata?

Post by vcaston »

Hi —

I've just discovered my Apple Photos library is corrupt (can't export any photos older than September) and so used a Graphic Converter script to export the whole lot. It looks like GC preserved the metadata and even gives accurate creation/modification dates in the Finder. But the filenames are completely hopeless. (Thanks, Thorsten!)

Is there a way to batch rename them using e.g. date and maybe city location?

Thanks.

Victor
User avatar
forum_adm
Site Admin
Posts: 1818
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Batch renaming files from metadata?

Post by forum_adm »

Thanks for your feedback.

I store the files with the filenames used by Photos.

You want to use the city. So, check if the metadata of the files contain the city. Just select one file in the browser and press command and I
You will get the IPTC/XMP dialog. Check the following tab:
Screenshot 2023-02-17 at 06.47.jpg
Screenshot 2023-02-17 at 06.47.jpg (204.63 KiB) Viewed 3063 times
You can use the following command if the city is missing:
Screenshot 2023-02-17 at 06.43.jpg
Screenshot 2023-02-17 at 06.43.jpg (106.36 KiB) Viewed 3063 times
User avatar
forum_adm
Site Admin
Posts: 1818
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Batch renaming files from metadata?

Post by forum_adm »

Now use the GraphicConverter Simple Rename feature in the browser:
Screenshot 2023-02-17 at 06.42.59.jpg
Screenshot 2023-02-17 at 06.42.59.jpg (137.93 KiB) Viewed 3063 times
User avatar
forum_adm
Site Admin
Posts: 1818
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Batch renaming files from metadata?

Post by forum_adm »

1. Clear the filename:
1.jpg
1.jpg (290.54 KiB) Viewed 3063 times
2. Add the Exif date to the filename:
2.jpg
2.jpg (264.34 KiB) Viewed 3063 times
3. Add the city from IPTC/XMP to the filename:
3.jpg
3.jpg (271.68 KiB) Viewed 3063 times
And finally click onto Rename.
vcaston
Posts: 8
Joined: Tue Feb 18, 2020 7:09 pm

Re: Batch renaming files from metadata?

Post by vcaston »

Many thanks for this — useful to see how it's done.

This is only manual, though, right? No way to batch process it?

Many thanks.

Victor
User avatar
forum_adm
Site Admin
Posts: 1818
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Batch renaming files from metadata?

Post by forum_adm »

You can select a complete folder and process it. So, it works as batch (but without any change of the file content).

Also, you can save this rename settings and simple execute the saved setting directly from the rename submenu.
vcaston
Posts: 8
Joined: Tue Feb 18, 2020 7:09 pm

Re: Batch renaming files from metadata?

Post by vcaston »

Super — thanks. And it looks like I can select all the files in a folder and do Reverse Geotagging on them all first too!
vcaston
Posts: 8
Joined: Tue Feb 18, 2020 7:09 pm

Re: Batch renaming files from metadata?

Post by vcaston »

Hmm. Is there a simple way to sort those images that have some GPS information from those that have none? Or those that lack a shooting date/time?

(If there is no GPS information or shooting date and time, the Simple Rename routine above returns a null string.)

Many thanks.
User avatar
forum_adm
Site Admin
Posts: 1818
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Batch renaming files from metadata?

Post by forum_adm »

Just use the filter for showing all tagged or untagged files:
filter_gps.jpg
filter_gps.jpg (97.25 KiB) Viewed 3044 times
User avatar
forum_adm
Site Admin
Posts: 1818
Joined: Fri Dec 23, 2016 9:41 am
Location: Germany
Country: Germany
Contact:

Re: Batch renaming files from metadata?

Post by forum_adm »

Display the Exif date below the thumbnails. So, you see directly which items have no Exif date (just sort by Exif date in addition).
show_exif.jpg
show_exif.jpg (225.87 KiB) Viewed 3044 times
Post Reply