Skip navigation
Noel Carboni 20,984 posts
Dec 23, 2006
Currently Being Moderated

How to Retrieve the Default Photoshop Color Spaces?

Apr 1, 2011 12:19 PM

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

 
Replies
  • Currently Being Moderated
    Apr 10, 2011 3:00 PM   in reply to Noel Carboni

    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).

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2011 10:33 PM   in reply to Noel Carboni

    Hmm, we'd have to add something to the API to support getting the default colorspace profiles (and policies).

    Probably easiest if you just file a feature request and explain what you're trying to do.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2012 2:38 PM   in reply to Noel Carboni

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points