JavaScript,sampling,RGB COLOR

How to get the coordinates of one pixel of the sampling point RGB color?
Example, the figure for the RGB value sampling tool:

#target photoshop
var doc = app.activeDocument,
samps = doc.colorSamplers;
for ( var i = 0; i < samps.length; i++ ) {
     var r = Math.round( samps[i].color.rgb.red ),
     g = Math.round( samps[i].color.rgb.green ),
     b = Math.round( samps[i].color.rgb.blue );
     alert( 'R'+r+' G'+g+' B'+b );
alert ( samps[1].position );

Similar Messages

  • Sampleing from colors from placed pdfs in INdesign

    Hello every one. I keep running into a problem where when I place a linked image in Indesign cc I am only able to sample (using the eyedropper tool) a low res rgb version of whatever color I am trying to sample. When I view the final version the colors I created from the sample do not quit match the original. Does any one know why this is happening?

    You said it yourself: the Eyedropper reads an RGB color based on the pixels in the picture. The original image may be another color model. If the image was open in Photoshop, you could Eyedropper the color there; save as new Swatch; export the Swatch as an Adobe ASE (swatch exchange file); then import that ASE into your InDesign Swatch panel. For that to work well, let's assume you have a coordinated color management system turned on, and that both the InDesign document and the image in Photoshop are both defaulted to the same ICC color model.

  • RGB colors when ordering prints?

    I've been working on a high sports team poster, designed in Photoshop Elements. I hope to get it printed through the iPhoto on-line service.
    The background color was set in PSE by using the RGB values of the school colors. Will this information be used when it is printed? The red looks a bit pale on my inkjet printer sample and I was hoping that higher quality printers could take advantage of the info for more accurate color.

    As long as the image file has the standard RGB color profile, the colors should be reproduced faithfully. I have PSE set to embed the sRGB IEC61966-2.1 color profile whenever saving a jpg file.
    I've not ordered prints from Apple so can't attest to the accuracy of the color. However, if they are way off Apple has been good at making things right.
    OT

  • Sampling HSL Color in 3D vector scope and matching in color wheel

    I am attempting to match two clips together. I have already adjusted luma and rgb values with the still shot comparison. I would now like to sample a color in the still shot get those values and then attempt to secondary grade with the HSL values. Now what's confusing me is that when I look at the sampled hue values (3d vectorscope set to HSL) they are like 217.7, 218.3, 218.8 etc. How do I match those hue values on the main color wheels when the hue values on the color wheel can only be adjusted from .00 to 1?

    Yikes. That is a difficult one (for me at least). Luckily I have not had to work much with issues like that.
    I had one project that was shot in a desert on two different days under different cloud conditions. What a pain. I have much less hair now. So I can kind of understand what you are going through.
    I guess depending on the shot, if the sky is unobstructed, it might just be quicker to composite in a new sky and then try to match up the rest of the shot via the secondaries in Color. Of course if you do that, then you get into more than likely having to do a reconform to replace the clip with the clip that has the new sky.
    I'm not as seasoned as others on here, maybe they can provide better suggestions than me.
    Good luck!
    P.S. I would be interested in knowing what you solution ends up being.

  • Can you show slideshow within Lightroom 4.4 in Adobe RGB color space?

    Can you show slideshow within Lightroom 4.4 (not export out from LR) in Adobe RGB color space provided that you are using a wide gamut monitor which is capable and hardware calibrated & profiled to show such color space?
    If this is possible, what is required to do so in Windows 8 and i7-4770 & HD Graphics 4600 platform or does LR take care of it automatically?
    This is very basic question, however, I could not find a clear answer/info from LR documentation, so wish that someone can advice.

    Those settings are probably stored in a plist somewhere in ~/Library/Preferences. If you can locate the appropriate file, you should be able to copy it to all the network user folders.

  • Color problem with ProPhoto RGB color space

    Hi, everyone,
    I have wery special problem I think. I use MacBook pro 15" with retina display, adobe Photoshop CC and when I export RAW (from Nikon D7000) from Lightroom 5 to Photoshop with settings: 16 bit TIF, color space: ProPhoto RGB I have a problem with displaying the correct colors. As you can see in this picture:
    My problem are some "green" artefacts in absolutely black and white picture. I tried myself to solve this problem and found the following facts: when I convert picture into Adobe RGB or sRGB color space is everything OK - without green artefacts.
    But here is one important fact: I have calibrated monitor by datacolor spyder4elite and problem with ProPhoto RGB incorrect color displaying is only when the color calibration configuration is loaded. When I change my display calibration to standard apple color LCD profile than is everything OK.
    But using uncalibrated monitor and also Adobe RGB color space are no right solutions for me.
    My question is why I have problem with displaying ProPhoto RGB color space in photoshop under calibrated monitor profile and can anybody help me please?
    Thanks for answers.

    That's a classic example of the basic problem with 16 bit color. There is no solution that I know of.

  • My illustrator CS6 crashes when i try to open an AI file with RGB color mode

    My illustrator CS6 crashes when i try to open an AI file with RGB color mode. I worked on this file yesterday and changed it to RGB mode. Today i tried to open the file again but illustrator won't open it and crashes. It does work when i want to open a file with CMYK color mode.
    Anyone know how to fix this ?

    Have you tried trashing the prefs?

  • RGB color in inDesign changes (washed out) after exporting it to PDF

    Hi,
    I am new to InDesign and i have a hard time figuring out how could I export my InDesign file to PDF without affecting the color.
    This is what I do.
    1. I created a new document with Transparency Blend Space set to Document RGB
    2. I created a box using the rectangle tool and filled it up with RGB color, R=126 G=12 B=110
    3. The color in Indesign is just how i wanted it, however, the problem arises when i export the file now to PDF
    4. Instead of the color i wanted, the color was changed to a lighter color, or washed out.
    5. THis happens even in text have the same RGB setting.
    How could I export it to PDF with the same color, without being washed out?
    I really appreciate your help on this. Thanks.

    That sounds like the Color Picker, which works a bit differently in ID than in Illustrator or Photoshop. If the cursor is not in one of the RGB fields when you say OK you won't get RGB color. You can see this by noting the text in the Add ... Swatch button. My guess is you added the color as the CMYK conversion which is a bit lighter.
    You might want to use the panel menu in the Swatches panel instead, or the new swatch button at the bottom of the panel while holding down the Alt key to open the new swatch definition dialog. You want to create a Process color and change the type to RGB, then enter the values in the RGB fields. Or if what you want is really Pantone 249U you can define a Spot swatch and choose Pantone Solid Uncoated and then specify the 249. I'll warn you though, that CS6 uses Lab values for displaying spot colors and 249U is considerably lighter than either the RGB you specified or the 249C. In earlier versions the book value conversions were used. Even when using Lab display values through Ink Manager in CS5, the coated and uncoated swatches incorrectly look the same in ID, and in Illustrator CS5 you would need to turn on overprint preview to see a difference.
    Here are a couple of screen captures from PDFs exported from ID CS5 and CS6 using High Quality Print. The colored boxes with the lables were pasted from Illustrator CS5 to be sure I was using the same color definitions and that theywere behaving as native objects. Below are the same boxes placed:
    and here is how the screen looked in CS6 in ID (notice the difference in the placed .ai file -- the screen preview is NOT using the Lab values, although it exports with them):
    I don't know what the content is and how you present it, but it doesn't sound like a web page. That said, if you choose Web for intent in Document Setup you can still use print size paper sizes for the document and change the rulers after the doc is created to read inches or millimeters or other units of your choice instead of pixels and the file will use default RGB swatches and default to RGB when making new colors.

  • RGB colors become dull in Acrobat PDFs

    I'm using CS6 and when I create a PDF, the RGB colors appear much duller than the original source file. The shift is about (if not exactly) what you would see if you converted an RGB document with bright colors to CMYK.
    I'm on a Mac using the latest update to OS X. My typical process for creating a PDF is by starting with Photoshop JPEGs and using the "Combine Files in a Single PDF" function, or by exporting an InDesign document (with RGB art) directly to a PDF.
    If I open the exported PDF in either Adobe Acrobat Pro (10.1.4) or the latest version of Adobe Reader, the bright, saturated RGB colors in the original document appears noticeably dull in the PDF.
    I've experimented with several different Color Settings to no avail, including different RGB settings (sRGB, Adobe RGB (1998), etc.). Currently my settings are using Bridge to Synchronize my Color Settings across my CS6 apps (Photoshop, Illustrator, InDesign, Acrobat) and have confirmed they are all reporting a Synchronized state.
    My overall Color Setting is "Monitor Color" (though I've also tried others, including the default North American General Purpose). My RGB Workspace for all apps is set to the Profile of my Dell monitor, which was created with Apple's built-in calibration tool (not the best, I know, but wouldn't account for a difference as dramatic as this.) And my Color Management Policies under these Syncronized settings are all automatically set to "Off".
    As a test, if I export my RGB InDesign document to a JPEG and open that file back in Photoshop, the colors are fine—unchanged from the original look as they originally appeared in Photoshop. It's only when I go to Acrobat that the colors shift to a duller version.
    I keep looking in Acrobat preferences for a "Display PDF with Embedded Profile" or something along those lines, but Acrobat Color Management settings are the same as all my other CS6 apps.
    Any thoughts?
    Thanks,
    R

    Yes, I too suspect OS X 10.8 being the problem.
    Apple's Preview shows the colors fine. I also opened the PDF in Photoshop - fine.
    I even converted the colors in Acrobat X to a different color space (ProPhoto RGB). Still looks bad in Acrobat, still looks fine everywhere else. Also single images in the ProPhoto RGB PDF sent from Acrobat to Photoshop look fine and show the correct profile.
    Just like you I happen to see this the first time on Mountain Lion. It also seems to be connected to the monitor's profile somehow. Here's why I think so:
    Photo Mechanic by Camerabits (www.camerabits.com, a professional image viewing and rating program recently had issues with colors. They looked way over saturated or very dull, depending on whether the programs CMM was off or on. But the effect looked different on three different machines I checked.
    A Mac Pro with NEC PA271 and NEC Multi Profiler
    A Mac Pro with NEC 2690WUXi and NEC Spectraview II
    A MacBook Pro 17", calibrated with Datacolor Spyder 3 Pro
    All Machines on OS X 10.8.x
    On one machine the reds got over exaggerated, on the other it had a orange-green tint. And so on.
    The developer of Photo Mechanic gave me a special error logging version and with the log I sent him he eventually was able to fix it. Seems to say a lot if you ask me ...

  • RGB Color management between Illustrator and Photoshop

    Hi,
    I have a color management issue when exporting JPGs from Illustrator and opening them in Photoshop:
    In Illustrator (file is in RGB mode), I have a logo which has the color RGB 0/0/153 and I export a JPG. When I open the file in Photoshop, the color is RGB 1/0154.
    I have activated Adobe CC Color Manegement via Adobe Bridge (option "Europe, Universal 3"), which should produce consistent results in all Adobe applications.
    So which is the color that is actually in the file? And what do I have to do to get the color I want (0/0/153) actually exported from Illustrator? I need this color to comply with corporate design specifications of my client.
    Since I have to produce a lot of files it is not possible to readjust all colors in Photoshop ...
    Thank you!
    Michael

    First, check to make sure that the RGB working colorspace is the same for both Illustrator and Photoshop.
    When exporting the jpeg from Illustrator make sure the 'embed' color profile is selected, and it is the color profile that is required for your client. If this is for web use, then sRGB is your best choice.
    When you open the exported image in Photoshop, make sure that the color settings for Photoshop are set to 'Preserve Embedded Profiles'. After you open the image in Photoshop, you can double check by going to Edit > Convert to Profile... The source profile should match the embedded exported profile from Illustrator. If these match, your RGB color values from Illustrator and Photoshop should also match.
    If the source profile does not match, cancel out of the 'Convert to Profile" and go to 'Assign Profile". Assign the profile that you embedded when exporting from Illustrator. Now Photoshop should have the same values as Illustrator.

  • How can I preserve RGB color within Adobe PDF?

    I'm using Acrobat Pro 9.3.1, OS 10.6, and I'm creating PDF output from Keynote, strictly for on-screen viewing.  I would like to use Acrobat Pro to create a compact PDF file with screen-resolution graphics, however I keep running into problems with color changes applied by Acrobat.
    The document contains bright RGB colors.  It also contains images, some of which are high DPI resolution. 
    * If I use the OS X "Save As PDF..." feature, the generated file is about 32 MB.  Opening the resulting file with Preview, the file looks fine.  Opening the resulting file with Acrobat, though, shows the bright colors in the file as very drab-- almost as though it's been compressed into CMYK space.    Once it's in Acrobat, I can use the PDF Optimizer and save it as a mostly-adequate 10 MB file, but the color issue is annoying.
    * If I use the "Save as Adobe PDF" feature, and save the file with "standard" settings, the resulting PDF file is 27 MB.  If opened in Acrobat, it shows the same CYMK-like color compression, and if opened in Preview, it shows the bright colors.
    * If I use the "Save as Adobe PDF" feature, and save the file with "PDF/A-1b:2005 (RGB)" settings, the resulting PDF file is 50 MB. In both Acrobat and Preview, it shows up with full and correct colors. So obviously Acrobat is capable of handling RGB after all.  But this format is not really compatible-- it throws a warning about viewing in that format, and has all kinds of graphical glitches.  And, the file is even larger than I started with.
    So, what I would like to know is this: How can I set up acrobat to let me produce those nice 10 MB files, without showing the funny color compression?

    p taz wrote:
    Ummm... not quite sure where you get that from, colour managed means converted as per settings in the device or application.  Acrobat preset for PDFX/1a specs a conversion to cmyk.  Other presets include RGB or unconverted and these are chosen by the app or user.
    This is where your problem is, something inside Keynote is applying a conversion.  I was just eliminating the obvious, not just for you but for other, less knowledgeable readers.
    Preview will use the monitor or sRGB profile and the only way to make sRGB or equivalents look flat is to feed it an untagged file that belonged to a very different gamut.
    3. Yes, conversion is happening.  That's what I'm trying to prevent.
    By definition, not converting means UNmanaged..  what you were calling unmanaged before is actually MISmanaged.
    As mentioned, Acrobat, to my knowledge does not convert without being told to.  That instruction comes from the built-in actions of the application in question or a user choice and you may not be able to address the former.  If the former was the case then you might be able to work around by preparing your original file in a small gamut like sRGB and then it doesn't matter what Acrobat does unless you chose an unsuitable conversion at the user level.
    > Acrobat preset for PDFX/1a specs a conversion to cmyk.
    Okay.  That confirms what's going on.  Is there a way to turn this setting off, open the file, and then save it?
    >This is where your problem is, something inside Keynote is applying a conversion.
    No, actually keynote is irrelevant.  You can blame it and its color mismanagement all day, but the fact is that the change happens when it's opened in Acrobat with the default settings.  We know this because PS or PDF generated by keynote shows up okay in Preview or in that RGB PDF generated by distiller.  It's absolutely unambiguous.  I know that Acrobat is capable of converting the file without converting the color because it can make that RGB PDF.  I know that my monitor isn't totally whacked because if I view that same "RGB PDF" on a different machine and/or OS, it look fine there too.   But what I want to know is how to create that "RGB PDF" without the crazy bloat and iffy file format.  There must be some settings that can be applied in Distiller to get this done. 
    From the suggestions that have been made here, it sounds like not many people have actually used recent versions of Acrobat Pro or Distiller on the Mac. (Options like "Email Files" and "PDFX4 2008" aren't there, converting PS files appears to broken, print to PDF is broken....)  That's okay, I don't expect you to know everything about this.  But, telling me just to not use the color blue or that my other programs are to blame isn't exactly helpful either.  Am I asking the questions in the right place? Is there some Adobe tech support venue that's more appropriate?

  • Indesign CS3 - export to PDF and keep RGB colors

    I'm trying to export from InDesign to a pfd file that contains the original RGB colors of an imported image. The imported image is RGB and is from Illustrator CS3. I've tried changing the output color options in the export dialogue box but I can't seem to figure out how to make it work so that the original RGB colors are preserved. Can someone please help?

    P. Marlowe, you're correct. Use PDF/X-4 to support live transparency used by the Adobe PDF Print Engine RIPs. PDF/X-4 supports the same color spaces as PDF/X-3 but keeps them device-independent when there is transparency.

  • For P.O.D. Printing: How to Set Adobe RGB Color Space

    Hello and thanks in advance,
    (I'm using InDesign CS 5.5 on a Mac.)
    I need to set the proper PDF export settings
    For printing a book on demand, with color drawings inside on the text pages.
    The onnly instructions that I have been able to find, say this:
    "Submit your graphics in the Adobe RGB color space, withprofile embedded."
    The Big Question: How do I do that ?
    I know enough to start with
    File --> Adobe PDF Presets --> Press Quality
    Then I click on the "Output Menu"
    and here's where I start to get lost.
    for
    Color Conversion ...
    I think I should select "Convert to Destination"
    for
    Destination
    I think it should be "Adobe RGB (1998)"
    Now in order to embed this profile,
    What should I select under:
    Profile Inclusion Policy   ?
    And is there anything else I should be doing to get these inside color images printing nicely ?
    Thanks again,
    IthacaAuthor (aka ZorbaTheGeek, but the forum would not let me log in with my old screen name)

    Virtually all digital printing is done via either PostScript or PDF. In the former case, the PDF is converted to PostScript viat use of Acrobat and in the latter case, the PDF is sent directly to the digital printer.
    In either case, CMYK is in fact the actual destination color space. There are no real RGB printers!!! What is true is that non-PostScript / non-PDF printers (typically low end laser and inkjet printers as well as specialized inkjet and dye sublimation photo printers) do take in RGB via drivers and convert that to CMYK, but I don't believe that is what you are dealing with.
    Our recommendation at Adobe for best printing results, whether for offset or digital printing, is to export PDF as PDF/X-4 with no color conversion using the default CMYK color space (SWOP CMYK) or if instructed otherwise by your print service provider, one of the other CMYK color spaces provided by Adobe or by the print service provider themselves. FWIW, most on-demand digital print devices do have settings to fully emulate SWOP CMYK printing conditions. Using PDF/X-4 in this manner allows the existing color content in your InDesign document to be properly tagged in the output PDF file and converted to CMYK at the digital printing device's RIP.
    (It might also assist us if you can provide a pointer to the explicit instructions provided by your print service provider.)
              - Dov

  • Eyedropper tool wrong rgb color

    I've placed an rgb image and on top of that a vector square which I wanna give the same color as the bright green one in the rgb image. So I used the eyedropper tool on that bright green color. But as you can see it give a more dull greenish color. The document is in rgb mode. I would expect this more when I was working in cmyk but I ain't. Why isn't the eyedropper tool picking the bright green color? The image is in rgb, illustrator is in rgb, in photoshop I can see the bright green color in the rgb image. So why isn't illustrator using this bright green color with it's eyedropper tool?
    Edit: Turns out the eyedropper tool only works correctly (while illustrator is in rgb color mode and the image placed is also in rgb), when the image placed is embedded and not just linked. After I dragged the image on the page and go to Links to have the image embedded and then use the eyedropper tool, I get the exact same color. Seems a bit odd that it won't work the same way when the image is linked?

    The eyedropper only works accuratelyon vector objects. Shift eyedropper is misleading as the color chanegs but never has been accurate on bitmaps in Illustrator. Shift eyedropper does not pick up the pixel value, but what is being sent to the monitor going through conversions for color mgmt, color modes, etc.  Open the image in photoshop and use the eyedropper set to 1 pixel.

  • Problems with RGB colors in Illustrator

    Hello,
    i have a problem with saving my artwork which is done in illustrator in PDF file. This artwork needs to be saved in PDF in RGB colors. It seams  that I cannot do this. Originaly artwork was done in CMYK. Option Edit/Edit Colors/conver to RBG is not working that is this option is not possible.
    Any suggestions please. Printing company cannot process it if PDF is not in RGB colors.
    Thank you in advance.

    But there is no difference in either case as the file will not be overwritten.
    True that the file will not be overwritten if you're careful not to do a regular save, but there is a difference.
    When you switch from CMYK to RGB document mode in Illustrator, AI simply converts to whatever you've set as your RGB working space. Yes, of course, you can go into Color Settings and change your workspace profile if need be, but now you're monkeying with settings that you might not want to be changing frequently.
    Why not, instead, take advantage of a feature that's there specifically to deal with workflow issues like this?
    If the printer requires a specific RGB space that's different from your normal working space, it's much easier to select it from the destination color dropdown during PDF creation. If you'll be creating more files for this particular printer, simply record a custom PDF (job options) preset.
    Even if one chooses to do it the Wade Zimmerman way, one should make sure to look at the color panel during PDF creation to make sure no unwanted space conversions are taking place.

Maybe you are looking for

  • HT204053 ok folks , icloud  has ceased syncing between devices  and i do not know why

    shortly after  upgrading  my  desktop to lion , all my devices  seem to have disconnected from each other , Itunes is the only thing  that continues to push  new material to  the other devices  . I  am such  a mac challenged person i  don't know how

  • How much data does the apple maps app use per hour ?

    hello, i would like to know, if somebody could give me a rough number of how much the Apple Maps app uses per hour for navigation ?

  • Pending sales order weight and value

    Dear all, Please guide me that how ill get pending sales order weight and net value for all line items. I used VBUK for pending sales order where lfstk = ''a' or 'b' and vbtyp = 'c'. for line item details i used VBUP where LFSTA = ''a' or 'b'. for fu

  • Adobe Creative Suite 6 Download and Installation Problem

    I have purchases Adobe Creative Suite 6 and went to download it.  It downloaded a Package.exe and when I ran setup it ran for hours and in the end said it was complete, but I have nothing to show for it but some Zip files and some setup files which I

  • IWeb Resaving Graphics

    Is there a way to keep iWeb from resaving graphics when I publish to my FTP space? I get jpg files that look different from the preview in iWeb. I have been going to my ftp space and uploading/replacing with the original file but that is tedious.