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
  • 450 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?

ultrachrome
Inspiring
December 4, 2025

Ah...you're correct. The guy that built the scanner has the scanner apply a rec. 709 color space to all files including these single channel B&W files so this is confusing Photoshop (There is a long explanation as to why rec. 709 vs Adobe RGB that I only partly understand) Will your script still work?

ultrachrome
Inspiring
December 5, 2025

I can't test my script without a sample file, however, it should bypass the warning dialog.

 

EDIT: You will likely need to decide on whether a grayscale gamma of 2.2 or 2.4 best represents the Rec.709 tonality for a single channel file. Otherwise I would change it from grayscale to R=G=B so that the RGB profile makes sense, accepting that the filesize will now be larger.

 

As previously stated, you could just change your colour management policies for grayscale mode to off, that way you don't need to use a script.


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.