Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Bridge CS5 Renames Files in HTML Web Gallery

Explorer ,
Sep 02, 2010 Sep 02, 2010

When creating an HTML Web Gallery (using ‘Lightroom’ template), Bridge CS5 renames the thumbs and large images to an arbitrary number.  The caption reads as the original file name, but the actual image has a new name.  This is problematic, as my clients will right-click selected images from my galleries to save and forward for approval, but the file name is not the same as the original.

As an example: VLNK0321.jpg is renamed as _4856316150.jpg.  (In Preferences/Output, the "Convert multi-byte file names to Full ASCII" is unchecked.)

Is there any way to fix this little (for me--BIG) problem?

TOPICS
Scripting
4.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Apr 25, 2011 Apr 25, 2011

Solved!


This works for Windows.  I imagine the Mac solution is similar. Props to William Zauscher for helping find an answer.


I take no responsibliity for any damage caused to your computer, Photoshop or Bridge...


In Windows, browse to C:\Program Files\Common Files\Adobe\Bridge CS5 Extensions\Adobe  Output Module\mediagallery\resources\scripts


In the file named "galleryCreator.jsxinc" replace the lines:


AOM.AmgGalleryCreator.createUniqueFileName = function(filePath, jpgFile,  createMode)
{
    var alt

...
Translate
Enthusiast ,
Mar 10, 2011 Mar 10, 2011

This affects me greatly as well for the same reasons. There is no reason for this, Adobe.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 07, 2011 Apr 07, 2011

I believe I've discovered the file/script that does the renaming.  I've done some testing, and have been able to change the way Bridge does the changes, but not able to keep the original file name.

The file is "galleryCreator.jsxinc", found in C:\Program Files\Common Files\Adobe\Bridge CS5 Extensions\Adobe Output Module\mediagallery\resources\scripts.

I'm not a code-guy, so I'm hoping that someone with more smarts than I can help.  Below is the part of "galleryCreator.jsxinc" that does the re-naming.  Simply deleting this entire part of the script renders Bridge unusable.  So allowing the script to create the altername is important.  If the alteration could consist of only adding the "underscore" prefix to the original file name, all would be well...

Here's the pertient portion of the script:

AOM.AmgGalleryCreator.createUniqueFileName = function(filePath, jpgFile, createMode)
{
    var alteredName;
    while (true)
    {
        alteredName = "_";
        for (var i=0; i<10; i++)
        {
            alteredName += Math.floor(Math.random() * 10);
        }
        alteredName += ".jpg";
        var f = new File(filePath + alteredName);
        if (!f.exists)
            break;
    }
    return alteredName;
}


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 25, 2011 Apr 25, 2011

Solved!


This works for Windows.  I imagine the Mac solution is similar. Props to William Zauscher for helping find an answer.


I take no responsibliity for any damage caused to your computer, Photoshop or Bridge...


In Windows, browse to C:\Program Files\Common Files\Adobe\Bridge CS5 Extensions\Adobe  Output Module\mediagallery\resources\scripts


In the file named "galleryCreator.jsxinc" replace the lines:


AOM.AmgGalleryCreator.createUniqueFileName = function(filePath, jpgFile,  createMode)
{
    var alteredName;
    while (true)
    {
         alteredName = "_";
        for (var i=0; i<10; i++)
        {
             alteredName += Math.floor(Math.random() * 10);
        }
         alteredName += ".jpg";
        var f = new File(filePath +  alteredName);
        if (!f.exists)
            break;
    }
     return alteredName;
}


...with the following:


AOM.AmgGalleryCreator.createUniqueFileName = function(filePath, jpgFile, createMode)

{

                var alteredName;

                while (true)

                {

                                alteredName = "_";

                                alteredName += jpgFile += ".jpg";

                                var f = new File(filePath + alteredName);

                                if (!f.exists)

                                                break;

                }

                return alteredName;

}

You can cut and paste the above.  Just save a version of the original file somewhere in case of screwups...

Cheers!

-Mark

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 14, 2011 May 14, 2011

Thanks for posting.  I do not see that folder in my computer.  Any advice on how to get there and replace the renaming script.  Under Adobe in Common Files I only see CS5 but not Adobe Bridge.


Adobe, the file renaming feature is inexcusable.  This creates untold number of headaches.  What if a client wants a photo, or 10>  Trying to match them is a PIA.  Worst of all, when making web galleries, Bridge strips all metadata out of images and in the past I could replace the "large" folder with all images with originals with metadata but now they all have different file names and I'd have to match and rename each photo to get that to work which could be tedious for a gallery with 100 photos.

Why does Bridge strip all metadata out of photos when creating a photo gallery?  I could add it after but it does use that data to create visible text in web galleries but also removes it from images.

Think I am going back to CS4 cause this is too much trouble.

Adobe, add the web gallery feature back to Photoshop and with Bridge, keep the metadata in the photos and get rid of the file renaming feature.  Nobody asked for this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 19, 2011 May 19, 2011

Irienight,

If you're using Windows, just search for the "galleryCreator.jsxinc" file form the Start Menu. Make sure you have "Show Hidden Files" selected in Explorer. If you're using a Mac, I can't help you. I've looked for the culprit file in Mac, but haven't been able to find it.

Regards,

-Mark

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 29, 2011 Jul 29, 2011

Mark,

Thanks SO much!  It worked great!  I have been struggling with this problem for months. So glad I checked the forum for a solution!!!  By the Way, I found the script in the  Program Files(x86)  folder. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 08, 2011 Aug 08, 2011

PLEASE HELP -- Huge problems caused by this change.  Because the filename doesn't travel with the new image as it used to, this throws the whole order of huge galleries I'm doing for work.

This software is too costly to not have that functionality go along with the CS upgrade.  Please fix with an update ASAP or if I'm missing something for Mac, let me know.

Thanks and best..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 23, 2011 Nov 23, 2011

Seriously Adobe, get the damn lead out. I'm thankful for these hacks, but you still haven't managed to correct this problem after how many updates/versions?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 01, 2012 Jun 01, 2012

I've found where this script lives on a Mac:

/Library/Application Support/Adobe/Bridge CS5.1 Extensions/Adobe Output Module/mediagallery/resources/scripts

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 02, 2012 Jun 02, 2012

Does anyone know if this has finally been remedied in CS6?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 17, 2012 Oct 17, 2012
LATEST

Hi All,

Very happy to report that Adobe has FIXED this problem in Bridge CS6, in both PC and Mac versions.  (Plus, the GUI in Photoshop CS6 is gorgeous: Dark Gray and clean.)

Thanks (finally) Adobe.

-Mark

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines