Skip to main content
Participant
April 30, 2018
Question

Contact Sheets without .JPG?

  • April 30, 2018
  • 4 replies
  • 2940 views

I'm trying to make contact sheets with around 200 photos - everything is working great except it insists on including the .JPG in all the photo labels. I went through and deleted it off all the photo names (so Few_House.JPG became just Few_House) but it still prints them on the contact sheet. Any ideas on how to remove that, other than going through and marking up each individual label?

    4 replies

    Participant
    March 12, 2025

    You can try renaming the files without the ".JPG" extension before generating the contact sheet. If the software still includes it, check for an option to customize file labels. Otherwise, exporting a list and batch editing filenames might help. What software are you using for this task?

     
     
    Participant
    March 12, 2025

    i did try to rename the photos without the file name, for some reason it is still being included.  just upgraded to Photoshop 2025 today hence I lost the old script my office had. 

    Stephen Marsh
    Community Expert
    Community Expert
    December 2, 2023

    An alternative to editing the ContactSheetII.jsx file is to run a script to remove filename extensions from all text layers. This is good for a mix of different file extensions, otherwise the standard find/replace is good.

     

    #target photoshop
    // Remove filename extension from all text layers
    
    for (var i = 0; i < app.documents.length; i++) {
        app.activeDocument = app.documents[i];
        var doc = app.activeDocument;
        for (var j = 0; j < doc.layers.length; j++) {
            try {
                doc.activeLayer = doc.layers[j];
                if (app.activeDocument.activeLayer.kind == LayerKind.TEXT) {
                    doc.activeLayer.textItem.contents = doc.activeLayer.textItem.contents.replace(/\.[^\.]+$/, '');
                }
            } catch (e) {}
        }
    }

     

    https://prepression.blogspot.com/2017/11/downloading-and-installing-adobe-scripts.html

    Stephen Marsh
    Community Expert
    Community Expert
    December 2, 2023

    Quit Photoshop.

     

    Backup the ContactSheetII.jsx file found in your Photoshop application Presets/Scripts directory.

     

    Edit the ContactSheetII.jsx file in a plain text editor (if using Apple TextEdit, ensure that it is plain text mode and not rich text).

     

    Edit line 6587 which should read as:

     

      self.noExtensions    = false;

     

    Change the boolean value:

     

      self.noExtensions    = true;

     

    Restart Photoshop and enjoy!

     

    A full-featured advanced Contact Sheet X can be found here:

     

    https://sourceforge.net/projects/ps-scripts/files/ContactSheetX/v2.2/CSX-2_2.zip/download

     

    JJMack
    Community Expert
    Community Expert
    April 30, 2018

    edit the contact sheet II Photoshop script and change the way it creates the labels.   Strip the file extensions. Change how var caption is set

    JJMack
    philipr35696503
    Participant
    September 23, 2021

    Thank you for the reply JJMack.

    What should the script be changed to to remove the file extensions?