Skip to main content
Known Participant
September 16, 2017
Question

Adding sequential numbers to psd images

  • September 16, 2017
  • 6 replies
  • 20258 views

Mac OS X, Photoshop CC latest version.

I have a folder of 44 psd images and would like to automate adding a number to each photo in the picture area (not change the filename).

My attempts using variables isn't working - Photoshop will only add a number to the image open in Photoshop and not the other 43 images in the same folder. All images and text document are in the same folder.

I have tried using a plain text document with only the number required to be added to each image. Also a text file with the filename of each image, tab or comma, and number required to be added to each photo - reversed order als, number, tab or comma followed by filename.

I have tried opening all of the photos in Photoshop, instead of only having the first image containing a text layer with number 1.

I can change the number on the first image open in Photoshop but nothing happens to the remaining 43 images.

Is there a way to instruct Photoshop to process all 44 images - apply a sequential number into each image please?

This is not about the filenam

    This topic has been closed for replies.

    6 replies

    angie_taylor
    Brainiac
    September 16, 2017

    Although variables are designed for creating multiple variations from one template file, theoretically you could use this feature, in combination with Actions to update multiple files. I dont think you are wrong in your approach, it may work and I applaud you for persevering :-)

    angie_taylor
    Brainiac
    September 16, 2017
    angie_taylor
    Brainiac
    September 16, 2017

    I think you may have to use Actions alongside variables to achieve what you want?

    Known Participant
    September 16, 2017

    Thanks I will take a look at the tutorial.

    angie_taylor
    Brainiac
    September 16, 2017

    If you have a subscription that includes After Effects you could us the Numbers Effect to do this. In After Effects, import the images as an image sequence. (Check force alphabetical order if they are not named sequentially). Drag the image sequence onto the new comp button and then select the sequence and apply the numbers effect. change the settings to whatever numbering system you need, making sure it's set to create a unique number for each frame. Then go to Composition menu > Add to Render Queue. Render the comp out as an image sequence.

    Known Participant
    September 16, 2017

    Sorry I don't have After effects.

    JJMack
    Community Expert
    September 16, 2017

    I use Windows you a Mac it may be the differences in culture but I have problem following what you write.

    "I have a folder of 44 psd images and would like to automate adding a number to each photo in the picture area (not change the filename).

    Where do you want this number to be if not in the file name.  Does each PSD contain a single Image or a  layer you want identified with a number, do you want a text layer added?  What do you actually want to do.

    "My attempts using variables isn't working - Photoshop will only add a number to the image open in Photoshop and not the other 43 images in the same folder. All images and text document are in the same folder."

    Photoshop variables are are associated with layers in a template psd file and columns in a CSV file used to populate the Template with your images and text  the process creates new files would not update your 44 file in any way.  Photoshop variable and open image I do not get what you are writing.

    "I have tried using a plain text document with only the number required to be added to each image. Also a text file with the filename of each image, tab or comma, and number required to be added to each photo - reversed order als, number, tab or comma followed by filename. I have tried opening all of the photos in Photoshop, instead of only having the first image containing a text layer with number 1. I can change the number on the first image open in Photoshop but nothing happens to the remaining 43 images. Is there a way to instruct Photoshop to process all 44 images - apply a sequential number into each image please?

    This is not about the filenam"

    You are clear its not about File name you do not want them change and it is also seems clear you want your 44 psd files updated in some way that involves sequential numbers.

    What is not clear is what you do want.  It seems you may a text layer added to these PSD files.     IMO the only way to automate that process using Photoshop is with a Photoshop Script.   Which is way above your pay grade.  For if you knew Photoshop scripting you would not have needed to start this thread.

    If all the PSD are all the same size and resolution, have the same layer structure the script may be quite simple. If not the programming involved could be quite complex.

    IMO you should open each in Photoshop one at a time and add the number you want where you want and if a visible number in the image the size and location you want.  Its only 44 files.  If this will become a regular ongoing process you need to do.  You could think about automating the process.  However it will take a very long time to learn to Script Photoshop, weeks, months perhaps years. 

    JJMack
    Known Participant
    September 16, 2017

    I am trying to place a number on each image (text layer), in the corner. I start by opening a psd file and add a text layer with the number 1. I record this as an action in case its needed for variables.

    I complete a text file with a heading and a list of numbers 1-44. I set up variables > define > data sets using the same folder containing the 1-44 psd files and the text document used by variables.

    I use export > data sets as files but it gets stuck on the psd image open in Photoshop.

    I dis find this tutorial  How to create a batch job, numbering images (writing text on them) from 1 to 100 in Photoshop? - Graphic Design Stack Ex…

    In Photoshop CC I can't find the same option 'select file' as the tutorial suggest -

    "A Data Set is a collection of values that apply to a particular output document, not a complete set of values in a comma-delimited file, so now we define a starting image for our template by clicking the "Select File..." with the Image variable selected. I chose the Chrysanthemum image. Be sure that "Do Not Replace" is NOT selected."

    Known Participant
    September 17, 2017

    Hi there,

    This definitely works using Variables, I've just done it. It creates unique PSDs of each image with a unique number on it.

    You don't need to use Actions at all so leave them out.

    If you follow the tutorial that you posted, all you need to do is create a file that is the same size as your images. You can start with the first image, add a number layer and then save this into a subfolder called "Template Image". Variables will use this image as a template to create your new images which will be copies of the original images but with numbers added to them.

    In the tutorial I think you may have missed one step which is to click on the "Add New Data Set button". It's the one next to the Trash can in the "Data Sets" section.

    After doing this you'll see the Value > Select File section. In here select the first image in your sequence (probably the one that is open).

    After that, here is the place where you select the Data file. In the Data Sets panel, click on the Import button to open up this dialog box. Notice also the checkbox at the bottom of the dialog "Replace Existing Data Sets" - make sure to select this.

    Hope this helps :-)

    Then click OK to leave the Variables box entirely, then choose "File > Export Data Sets as Files" - This create a new folder for the files.

    Click OK and you're done :-)

    BTW, if this answers your question could you please mark it as "correct" so that it can help other people who want to achieve the same results, thanks a million :-)


    Angie,

    Many thanks for taking the time to produce this comprehensive post.

    Chuck Uebele
    Community Expert
    September 16, 2017

    Use Bridge or LR. Select all the photos you want, and use batch rename, using the file's current name as part of the naming process.

    Known Participant
    September 16, 2017

    Hi Chuck,

    Thanks for your reply - I did write in my original post this is not about filename changes, its about adding a number in the picture area

    Jeff Arola
    Community Expert
    September 17, 2017

    If you don't mind the sequence numbers being two digits as in 01, 02, 03, 12, etc, then this Picture Processor.jsx script should work.

    The script goes in the photoshop presets scripts folder and shows under File>Scripts in photoshop.

    GitHub - Paul-Riggott/PS-Scripts: Photoshop Scripts

    Participating Frequently
    September 16, 2017

    It could be done with variables and data sets, but I question the efficency for such a small number of images. You might want to search for a script.

    Known Participant
    September 16, 2017

    Hi Ed,

    I don't have a clue about scripts. Regardless of there only being 44 images, do you know how to achive this with variables and data sets?

    I know the steps, I have set up the variables 'Define' panel correctly. After importing the text file in 'Data Sets' there are 1 - 44 data sets shown in the drop down panel.

    When I go to export 'Data Sets as Files' all data sets is selected but everytime I get the following, A file named 01.psd already exists in this location, do you want to replace it (usual options; don't replace, replace or cancel). Only changes are allowed to image 01.psd - open in Photoshop.

    I thought if the text file and images were in the same folder, variables would work on all of the images?

    angie_taylor
    Brainiac
    September 16, 2017

    It's such a long time since I used data sets and variables. Can you choose to save them

    into a different folder? I have a tutorial

    on data sets somewhere that I did a few years back. Let me see if I can dig it out for you.