Skip to main content
Participating Frequently
February 11, 2019
Question

Color management and batching?

  • February 11, 2019
  • 3 replies
  • 2548 views

Hello!

I usually work with a lot of files from my Fuji Scanner. The problem is that they come from the scanner without a color profile. To fix that I have downloaded a Fujiscanner color profile. When I open my files I assign the scanner profile and then convert it to Adobe RGB and then save. All good except it takes a lot of time but the images come out looking good and correct.

So I have been trying to batch the whole process but my images end up looking too desaturated.

This is what my action looks like:

This is how I setup my batching

and this is what my color settings look like:

Does anyone know what's going on? Running my action should generate exactly the same result as when I do it manually but it doesn't.

Thanks for your help!

/Felix

This topic has been closed for replies.

3 replies

rob day
Community Expert
Community Expert
February 12, 2019

The javascript for an assign and convert is fairly simple. This one would ask for a folder of scans to batch. Note that the profile names have to be exact. Also, I‘m doing a simple Save, if you wanted a specific file format we could include some save as options

#target photoshop

var psdFolder = Folder.selectDialog("Select the folder containing scans", "");

var myFiles = psdFolder.getFiles();

app.displayDialogs = DialogModes.NO; 

for (var a = 0; a < myFiles.length; a++){

    try {

        var d = open(myFiles);

        //assigns profile and the convert. IMPORTANT, the name strings have to be exact,

        //i.e. it's "Adobe RGB (1998)", not "AdobeRGB (1998)"

        d.colorProfileName="Fuji_Frontier-Scanner_V3a";

        d.convertProfile("Adobe RGB (1998)", Intent.RELATIVECOLORIMETRIC, true, true);

        d.save();

        d.close();

    }

        catch(e) {

        continue;

    }

};  

Participating Frequently
February 13, 2019

Thank you! Where and how would I run this script?

rob day
Community Expert
Community Expert
February 13, 2019

You should have Adobe’s ExtendScript Toolkit app—open, copy and paste the code into a new window, and save with an .jsx extension into your Photoshop scripts folder: /Applications/Adobe Photoshop CC 2018/Presets/Scripts. Restart PS and the script will show in your File>Scripts folder, select it to run. If you don't have ExtendScript Toolkit, any plain text editor should also work.

Test on some samples to make sure it works as expected (the files are getting saved with the AdobeRGB profile embedded). I'm not explicitly doing that in the code.

D Fosse
Community Expert
Community Expert
February 11, 2019

Don't rely on the "missing profile" dialog (which gets suppressed anyway). Use Edit > Assign Profile. Then Edit > Convert.

JJMack
Community Expert
Community Expert
February 11, 2019

Are you sure the colors in the document without a profile that come from the scanner contain the scanners profile colors  you assign the document to before converting to Adobe RGB?  Try changing the assign to assign sRGB before the conversion, see if the colors are better then,

JJMack
Participating Frequently
February 11, 2019

assigning sRGB also works quite well but the colors seem more accurate with the scanner profile. It's not a problem with the profile.

When doing it manually (basically by just opening the file and converting, see screenshot) it looks right..

The problems occur when trying to batch it. Photoshop is doing something regarding color management without my knowledge.

Best,

Felix

JJMack
Community Expert
Community Expert
February 11, 2019

When your batching your scanner files do you get that prompt for each  image?  The Color settings you show looks like you should get that prompt. I do not think you would want an interactive batch process,

JJMack