Skip to main content
ultrachrome
Inspiring
December 4, 2025
Answered

How can I bypass invalid profile warning when opening files?

  • December 4, 2025
  • 1 reply
  • 452 views

We built a multispectral film scanning system with a Phase One Achromatic camera at its heart. For color film, it applies a profile but with B&W film which involves only a single exposure instead of three, the file it produces is untagged - which is fine other than when I try to open it in Photoshop I get a warning...

 

invalid profile.jpg

...For each and every file I want to open. which is fine with one or two files but we have thousands of files and I don't want to click this every time. How do I get rid of this?

 

Correct answer PECourtejoie

Thank you Stephan for taking the time. I'm going to have our I.T. guy look at your script as I realize with my first attempt that this is beyond me. Simply copying your script to edit.exe wasn't working how I was trying to do it. 

Also, I set my color management policies to "Gray: off" but I still get the warning.

Converting to RGB isn't a practical option as the are up to 150 megapixel files so tripling the size when not necessary is something I'd like to avoid. 

I seriously need to make a better effort to better understand color management as it has eluded me for 2 decades now. Like trying to get your brain around quantum mechanics. I understand the basics of what it's doing but so far as practically and properly applying it remains beyond me. 


Hi, start here: https://www.computer-darkroom.com/blog/tutorials/

 

add some : https://gregbenzphotography.com/photography-tips/how-to-optimize-color-settings-in-photoshop/

 

and top it off with http://colorremedies.com/realworldcolor/

1 reply

Stephen Marsh
Community Expert
Community Expert
December 4, 2025

Post a screenshot of your Color Settings so that we can see your colour management policies.

 

Other options:

 

* Use a script to open files which has the option to suppress warnings (I'll post the code later).

 

* Use ExifTool to remove or embed an appropriate profile to the images if you can't resolve via colour settings colour management policies.

 

P.S. You say it's untagged, but that's not what the dialog states? Do you really mean that it has an RGB ICC profile when it's only a single channel image?

Stephen Marsh
Community Expert
Community Expert
December 4, 2025
quote

* Use a script to open files which has the option to suppress warnings (I'll post the code later).

 

Try this, it was originally created to avoid a different warning message, but it should work for this situation:

 

/*
Open One or Multiple Selected Files Ignoring Pantone Warning Dialog.jsx
v1.0 17th December 2022, Stephen Marsh
https://community.adobe.com/t5/photoshop-ecosystem-discussions/how-to-stop-quot-pantone-colors-may-no-longer-be-available-quot-popup/m-p/14313577
*/

var savedDisplayDialogs = app.displayDialogs;
app.displayDialogs = DialogModes.NO;
var fileOrFiles = File.openDialog("Select the file/s to open (ignoring warnings):", Multiselect = true);
for (var i = 0; i < fileOrFiles.length; i++) {
    var openFiles = app.open(File(fileOrFiles[i]));
}
app.displayDialogs = savedDisplayDialogs;

 

Once installed into the application's Presets/Scripts folder, it can be mapped via a keyboard shortcut, potentially replacing the default open menu command.

 

  1. Copy the code text to the clipboard
  2. Open a new blank file in a plain-text editor (not in a word processor)
  3. Paste the code in
  4. Save as a plain text format file – .txt
  5. Rename the saved file extension from .txt to .jsx
  6. Install or browse to the .jsx file to run (see below):

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