Skip navigation
Currently Being Moderated

Photoshop internal RGB colorspace question

Sep 1, 2010 1:50 PM

Hi,

 

1) What kind of of RGB colorspace Photoshop uses internally sRGB, adobeRGB etc.?

Basically in/from what colorspace should i convert data in m,y format plug-in on rear/write?

Is it the same colorspase for all 8/16/32 bit modes?

 

2) What is the date range for 16 bit mode? is it u16 from 0-32K or from 0 to 64K?

 

Thank you.

 
Replies
  • Currently Being Moderated
    Sep 4, 2010 12:30 AM   in reply to V_D

    1)There is no internal colorspace.

    Each document has it's own colorspace.

     

     

    2) As documented in the SDK, the range in 16 bit is 0..32768 (NOT 32767)

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 6, 2010 12:28 PM   in reply to V_D

    The colorspace of a document is the ICC profile assigned to the document (via embedded profile, default logic, or explicit assignment/conversion).

    Generally, you should not be trying to parse the profile -- but the binary profile is made available to the plugins, and some colorspace/model conversion callbacks are provided.

     

    Photoshop does not expose all of ACE to plugins like Acrobat.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 7, 2010 6:15 PM   in reply to V_D

    1) Yes, those are some of the color conversion callbacks.  The SDK documents them, but I don't know if there are many examples of their use.

     

    2) I don't think we expose EXIF directly, but think we have some hooks for working with XMP metadata (which should include all the EXIF data except undocumented maker notes).

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 10, 2010 11:13 AM   in reply to V_D

    32 bit data in Photoshop is HDR, floating point data.  It has no defined range, and ICC profiles can't support that yet.

    So we support only a limited subset of profiles for 32 bit data.

    All documents in Photoshop have a profile associated with them.

     

    the 16-bit mode will have gamma already applied to it

    Ok, that makes no sense.

    The image data has an encoding defined by it's profile, there is nothing "already applied".

     

    Yes, 32 bit data is gamma 1.0 (linear) -- because floating point data is already pseudo-log encoded and doesn't need additional gamma encoding.  (adding gamma encoding to floating point data is probably going to do damage to your image quality)

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 10, 2010 1:28 PM   in reply to V_D

    When you are working with a 32 bit image, the profile is valid.  But it is a simplified profile - because not every ICC profile can support 32 bit HDR.

     

    Yes, of course you can use the document profile supplied by Photoshop.  But are you sure that little CMS can handle HDR data?

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 10, 2010 8:21 PM   in reply to V_D

    Ok, good - I didn't know Marti had extended it for HDR data (he's had floating point support for a while, but it was 0..1 only last time I looked).

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 10, 2011 3:41 PM   in reply to V_D

    As far as we know, we are writing Radiance files according to the spec.  We have zero bug reports about Radiance files, and people are using them with Photoshop all the time.

     

    Also, that should have been a new topic, with details.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2012 2:55 PM   in reply to V_D

    2) One more question. How to work with Exif metadata. Is there any specific API, any samples?

     

    There’s an 'EXIF' key in the document descriptor (at least since CS4, so it was also there when this thread started). I'm pretty sure it is read only, but, to take the example of a friend's iphone camera picture, its content string looks like this:

    EXIF tag 100001 N
    EXIF tag 100002 37.00 45.98' 0.00"
    EXIF tag 100003 W
    EXIF tag 100004 122.00 25.18' 0.00"
    EXIF tag 100005 0
    EXIF tag 100006 20.00m
    EXIF tag 100007 23:18:5494
    EXIF tag 100016 True Direction
    EXIF tag 100017 220.65
    EXIF tag 100256 1936
    EXIF tag 100257 2592
    EXIF tag 100258 8 8 8
    EXIF tag 100262 RGB
    EXIF tag 100271 Apple
    EXIF tag 100272 iPhone 4
    EXIF tag 100274 Rotate 90
    EXIF tag 100277 3
    EXIF tag 100282 72.0
    EXIF tag 100283 72.0
    EXIF tag 100296 Inches
    EXIF tag 100305 5.0.1
    EXIF tag 100306 2012:02:27 15:18:55
    EXIF tag 100531 Centered
    EXIF tag 133434 1/125 sec
    EXIF tag 133437 f/2.8
    EXIF tag 134850 Normal program
    EXIF tag 134855 80
    EXIF tag 136864 0221
    EXIF tag 136867 2012:02:27 15:18:55
    EXIF tag 136868 2012:02:27 15:18:55
    EXIF tag 137121 yCbCr
    EXIF tag 137377 1/125 sec
    EXIF tag 137378 f/2.8
    EXIF tag 137379 6.04
    EXIF tag 137383 Pattern
    EXIF tag 137385 24
    EXIF tag 137386 3.8 mm
    EXIF tag 137396 1295 967 699 696
    EXIF tag 140960 0100
    EXIF tag 140961 sRGB
    EXIF tag 140962 2592
    EXIF tag 140963 1936
    EXIF tag 141495 One-chip color area sensor
    EXIF tag 141986 Auto
    EXIF tag 141987 Auto
    EXIF tag 141990 Standard
    EXIF tag 141994 Hard
     
    |
    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