• Welcome to the Lightroom Queen Forums! We're a friendly bunch, so please feel free to register and join in the conversation. If you're not familiar with forums, you'll find step by step instructions on how to post your first thread under Help at the bottom of the page. You're also welcome to download our free Lightroom Quick Start eBooks and explore our other FAQ resources.
  • The May 2019 Lightroom updates are now available. There's a brand new slider called Texture, available across the whole family of apps. Lightroom Classic includes a new tool called Flat Field Correction. Lightroom (cloud-based service) has lots of big improvements including cloud trash, invitation-only web galleries, improved chromatic aberration removal and more. The Missing FAQ and Edit Like a Pro eBooks are already updated for the changes. You'll also notice the CC's have disappeared off the end of the names, so we've updated the forum names to match.

Assigning unique reference number to images in catalogue ?

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
Lightroom Version
2015.14
Operating System
macOS 10.11 El Capitan
Hello all,

I'm preparing to send some of my images to a press agency. Labeling and workflow is important in these cases...
I realize the best would be to be able to assign a unique reference number to each images of my catalogue, and when exporting, using that number as file name.

Is that possible ?
Essentially, I have to be able to go back in LR once the press agency has made their selection from small viewfile versions, and re-export at larger res of the images they chose.

What other solution can you recommend ?

Thank you !
 

Bernard

Active Member
Joined
Dec 18, 2012
Messages
103
Location
France
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
If your images have a unique ref number, you can of course use it for exporting, I would suggest : yourname-yourrefnumber.
If not, you could rename your photos during export like this : yourname-date-yourrefnumber.
The best is to have a unique ref number for all images in the catalog during import by renaming them like date-sequencenumber.
 

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
If your images have a unique ref number, you can of course use it for exporting, I would suggest : yourname-yourrefnumber.
If not, you could rename your photos during export like this : yourname-date-yourrefnumber.
The best is to have a unique ref number for all images in the catalog during import by renaming them like date-sequencenumber.
Hey Bernard,
That's the thing. I don't have unique ref numbers.
Is there a way to batch apply ref numbers in one of the metadata fields which I can use during export ?
 

Wernfried

Active Member
Joined
Jan 31, 2017
Messages
154
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
I use the Run Any Command Plugin. On export I run this command:
Code:
"c:\Program Files (x86)\Exif\exiftool.exe" -overwrite_original -preserve -MasterDocumentID={FullMasterFile} "{FILE}"
By this I add full path name to Exif tag "MasterDocumentID" - no matter which name the exported file gets.
Perhaps -UniqueDocumentID={UUID} would be also useful for you.

Base on the selected images you can read the exif data and print the path names into a plain text file. Then use such text file with Photo list importer in order to select these images in LR.
 

Wernfried

Active Member
Joined
Jan 31, 2017
Messages
154
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
I use the Run Any Command Plugin. On export I run this command:
Code:
"c:\Program Files (x86)\Exif\exiftool.exe" -overwrite_original -preserve -MasterDocumentID={FullMasterFile} "{FILE}"
By this I add full path name to Exif tag "MasterDocumentID" - no matter which name the exported file gets.
Perhaps -UniqueDocumentID={UUID} would be also useful for you.

Base on the selected images you can read the exif data and print the path names into a plain text file (or just copy to clipboard):
Code:
exiftool -T -MasterDocumentID *.jpg
Then use such text with Photo list importer in order to select these images in LR.
 

Bernard

Active Member
Joined
Dec 18, 2012
Messages
103
Location
France
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
Alex,
As I said, you can rename during export like : yourname-date-yourrefnumber , assuming your ref number is unique for any day. you will be able to retrieve the photo later in LR with the date and ref number.
another (big bang) option is to rename all photos of your catalog, if they are not too many to : date-filename , again assuming your present filename (ref number) is unique for any day. Better backup the catalog and photos before !
 

Johan Elzenga

Lightroom Guru
Staff member
Moderator
Lightroom Guru
Joined
Jul 2, 2015
Messages
8,583
Location
Netherlands
Lightroom Experience
Power User
Lightroom Version
Classic 7
There is a very easy method to do this. Create a file rename preset as follows: 'YYYYMMDD-HHMMSS-OriginalFileName'. Then use this to rename the exported files. Your exported images will get a unique file name this way, that can easily be found again in Lightroom.
 

johnbeardy

Senior Member
Staff member
Moderator
Lightroom Guru
Joined
Oct 8, 2007
Messages
4,988
Location
London
Lightroom Experience
Power User
Lightroom Version
Even easier - keep your originals with filenames following a convention like Johan suggests or with a sequential number - eg YYYYMMDD-SEQ Title. Export files with this name, maybe with your surname added during the export. So the unique ID is the original filename.
 

BarrySchwartz

Member
Joined
Mar 24, 2018
Messages
72
Location
Napa, California
Lightroom Experience
Power User
Lightroom Version
Classic 8
You may already know this, but check with the agency to see what their requirements are. In addition to file-naming conventions, the agency may also have specific requirements for captions, descriptions, your copyright and contact information, whether or not each image is released, including contact information that goes with releases.
 

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
I use the Run Any Command Plugin. On export I run this command:
Code:
"c:\Program Files (x86)\Exif\exiftool.exe" -overwrite_original -preserve -MasterDocumentID={FullMasterFile} "{FILE}"
By this I add full path name to Exif tag "MasterDocumentID" - no matter which name the exported file gets.
Perhaps -UniqueDocumentID={UUID} would be also useful for you.

Base on the selected images you can read the exif data and print the path names into a plain text file (or just copy to clipboard):
Code:
exiftool -T -MasterDocumentID *.jpg
Then use such text with Photo list importer in order to select these images in LR.
Hey Wernfried,

Thanks for the tip but I think this is a PC doable suggestions you made :) I'm on mac..
 

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
Even easier - keep your originals with filenames following a convention like Johan suggests or with a sequential number - eg YYYYMMDD-SEQ Title. Export files with this name, maybe with your surname added during the export. So the unique ID is the original filename.
Hey John,

That's the thing. My original file names are not unique, so the unique ID cannot be the original filename.
I make a folder for each date, but within these folders there are similar file names to other folders.
 

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
You may already know this, but check with the agency to see what their requirements are. In addition to file-naming conventions, the agency may also have specific requirements for captions, descriptions, your copyright and contact information, whether or not each image is released, including contact information that goes with releases.
Hey Barry,
Yep, they have specific guidelines. I checked all that.
 

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
There is a very easy method to do this. Create a file rename preset as follows: 'YYYYMMDD-HHMMSS-OriginalFileName'. Then use this to rename the exported files. Your exported images will get a unique file name this way, that can easily be found again in Lightroom.
Hey John,
Thanks for the suggestion. The problem with this method would be that, the date and time would change with each export.
It means if I export one image today with and then re-export it next week in a higher res for instance, then the YYYMMDD-HHMMSS would change in the second export. And that would be very confusing for the photo agency.
 

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
Alex,
As I said, you can rename during export like : yourname-date-yourrefnumber , assuming your ref number is unique for any day. you will be able to retrieve the photo later in LR with the date and ref number.
another (big bang) option is to rename all photos of your catalog, if they are not too many to : date-filename , again assuming your present filename (ref number) is unique for any day. Better backup the catalog and photos before !
Hey Bernard,
Nope, that's my problem, file names are not unique for any day.
I work in 35mm film negative and get the image scanned by the lab. When they provide me the digital files, these always have similar names that their scanner and/or software create when digitalizing.
 

Johan Elzenga

Lightroom Guru
Staff member
Moderator
Lightroom Guru
Joined
Jul 2, 2015
Messages
8,583
Location
Netherlands
Lightroom Experience
Power User
Lightroom Version
Classic 7
Hey John,

That's the thing. My original file names are not unique, so the unique ID cannot be the original filename.
I make a folder for each date, but within these folders there are similar file names to other folders.
Because your images are shot (or scanned!) at a different time, the file name becomes unique if you use my proposed renaming scheme. I do indeed use this to rename my images on import already, like John suggested. That way it is even easier to track an exported photo, because I don’t have to rename anything on export. This should also work for scanned images.
 

Johan Elzenga

Lightroom Guru
Staff member
Moderator
Lightroom Guru
Joined
Jul 2, 2015
Messages
8,583
Location
Netherlands
Lightroom Experience
Power User
Lightroom Version
Classic 7
Hey John,
Thanks for the suggestion. The problem with this method would be that, the date and time would change with each export.
It means if I export one image today with and then re-export it next week in a higher res for instance, then the YYYMMDD-HHMMSS would change in the second export. And that would be very confusing for the photo agency.
No, it would not. YYYYMMDD is not the date you exported the image, it’s the creation date of the original image. That date never changes, so your second exported image would get the same file name.
 

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
Because your images are shot (or scanned!) at a different time, the file name becomes unique if you use my proposed renaming scheme. I do indeed use this to rename my images on import already, like John suggested. That way it is even easier to track an exported photo, because I don’t have to rename anything on export.
Hey John,
Bellow I place a screenshot of my current naming structure.
I have a folder for each different type of camera (I only shoot film).
I make a folder for the scanned date. -> I shoot my rolls for films over several days (and sometimes weeks) so it's not practically to track shooting date.
Inside I place the files, I receive from the lab. They all have similar naming for reach rolls. Meaning, for example I have many "CNV000001.JPG" files but they are in different scan folders.

If I understand, in your method I would have to rename my file names before importing them in LR correct ?


Screen Shot 2018-08-08 at 10.36.00.jpg
 

AlexBrandt

Member
Joined
Mar 19, 2018
Messages
58
Location
Geneva, Switzerland
Lightroom Experience
Intermediate
Lightroom Version
Classic 7
No, it would not. YYYYMMDD is not the date you exported the image, it’s the creation date of the original image. That date never changes, so your second exported image would get the same file name.

Ahh, I see. Ok. I tested that and indeed it does give me unique name.

Screen Shot 2018-08-08 at 10.50.20.jpg


I see I can then search LR with metadata based on date.
But how can I search with the HHMMSS ?

Screen Shot 2018-08-08 at 10.51.32.jpg
 

Johan Elzenga

Lightroom Guru
Staff member
Moderator
Lightroom Guru
Joined
Jul 2, 2015
Messages
8,583
Location
Netherlands
Lightroom Experience
Power User
Lightroom Version
Classic 7
Ahh, I see. Ok. I tested that and indeed it does give me unique name.

View attachment 11262

I see I can then search LR with metadata based on date.
But how can I search with the HHMMSS ?

View attachment 11263
Searching on the date and the original file name should be enough in your case. The HHMMSS is meant to keep unique file names if you shoot with more than one digital camera. In that case you better rename on import.
 
Top