Skip to main content
Noel Carboni
Legend
April 1, 2011
Question

How to Retrieve the Default Photoshop Color Spaces?

  • April 1, 2011
  • 2 replies
  • 1420 views

Specifically, I would like to be able to access the actual color profiles the user has chosen as the default RGB and Grayscale color spaces, so I can do the same things as Photoshop with untagged images.  I'm defining functionality to be similar to that of Photoshop itself when Photoshop does not provide a pointer to a document color profile via gFilterRecord->iCCprofileData.

I'm thinking along these lines:

1.  Detect if Photoshop is the host, and if not, stop and use internal defaults (e.g., sRGB).

2.  Use the property suite to ask Photoshop what the user's prefs for the appropriate color category is, depending on the image mode received.

What I don't know are the specifics, nor whether Photoshop is likely to provide a pointer to the profile in memory or whether I'll have to go open it myself (either way would be no problem).

Do you know any of the specific callbacks I'll need to code?

Meanwhile I'll be scouring the documentation.

Thanks.

-Noel

This topic has been closed for replies.

2 replies

June 24, 2012

From an automation plugin, you can get the 'colorSettings' out of the application descriptor, and at least see the name of the 'workingRGB' space, etc.

Noel Carboni
Legend
April 10, 2011

So far I haven't been able to figure out how to ask Photoshop for this information.  It seems just plain absent from the list of things one can request.

-Noel

Chris Cox
Legend
April 10, 2011

I don't think that information is available.  Normally it should not matter to a plugin (which just has to deal with an existing file or document).

Noel Carboni
Legend
April 12, 2011

Well, that existing file has no profile attached.  How do I interpret it?


At the moment, I interpret untagged images as per the Photoshop default settings (sRGB, DG 20%), but some folks might change those.  I suppose I'll just have to explain how the information isn't avaialable if someone should notice.  I suspect most folks who actually care about color management will not be trying to work on untagged images anyway...

-Noel