How do I prevent color streaking outside of an adjustment layer?

When I load a selection and create and adjustment layer, the hue and saturation effects areas outside the layer. You can see the red streaking below. How do I avoid this?

My work flow is to select the object with one of the selection tools, then place the object on its own layer (CTRL+J)
Open the the H/S adjustment layer above this
Next, group the top two Layers (CTRL+G), so that the adjustment is confined

Similar Messages

  • Using color sampler values with curves adjustment layer

    Hi, I have just started trying to teach myself javascript.  Based on preliminary research, it's become apparent that there are many functions in Photoshop that are either extremely cumbersome or impossible to code by hand without using the Script Listener.
    My  goal is as follows: first, I will manually load two photos as layers in a single document.  Then I will manually place two or more color sampler points on the document.  At this point I would like the script to create a curves adjustment layer (ideally clipped to layer 2) and place as individual channel anchor points  the RGB data from the color sampler points on Layer 2, and then adjust the output of the points on each channel to the color sampler RGB values of layer 1.  
    As my first script, I realize this is probably going to be a lot of work.
    I did find some code that returns the average value of manually placed color sampler points.  Conceptually then, I would need to add code which creates a new curves adjustment layer and adds those RGB values (from a specific layer)  as anchor points on the individual channels,  and then hides one layer and looks at the RGB values of the color sampler points, and uses them as the output values for each anchor point.
    Sounds simple enough from a conceptual standpoint.
    I'm looking for some guidance on how to get started.
    Which parts will I definitely need Scriptlistener for and will that be adequate to do the job?
    How would you recommend I get started on this?
    Thanks very much for any input.

    The function I had provided was an example into which you would need to feed the values you got with Mike’s code.
    The code below would create a Curves Layer as shown in the screenshot, but I’m not sure it would work reasonably for all cases.
    // with code by mike hale;
    // 2012, use it at your own risk;
    // call the function to run the script
    #target photoshop
    createCurveAdjustmetFromColorSamplers();
    // create a function fo hold most of the code
    function createCurveAdjustmetFromColorSamplers(){
        // first add some condition checks
        // needs an open document in a color mode that supports layers
        if(app.documents.length == 0 || ( app.activeDocument.mode == DocumentMode.BITMAP || app.activeDocument.mode == DocumentMode.INDEXEDCOLOR ) ){   
            alert('This script requires a document in Greyscale, RGB, CMYK, or Lab mode.');
            return;
        // check for at least two colorSamplers
        if(app.activeDocument.colorSamplers.length < 2 ){
            alert('This script requires at least two colorSamplers.');
            return;
        // last check for at least two layers - assume they will be on same level( not in layerSet )
        if(app.activeDocument.layers.length < 2 ){
            alert('This script requires at least two layers.');
            return;
        // create varaibles to hold the colorSampler's color property for each layer
        // for the bottom layer
        var outputArray = new Array();
        // for top layer - array could also be created this way
        var inputArray = [];
        // store the number of samples because it will be needed in more than one place
        var numberOfSamples = app.activeDocument.colorSamplers.length;
        // hide the top layer
        app.activeDocument.layers[0].visible = false;
        // collect the samples from the bottom layer
        for(var sampleIndex = 0; sampleIndex < numberOfSamples; sampleIndex++ ){
            outputArray.push(app.activeDocument.colorSamplers[sampleIndex].color);
        // turn the top layer back on
        app.activeDocument.layers[0].visible = true;
        // collect those samples
        for(var sampleIndex = 0; sampleIndex < numberOfSamples; sampleIndex++ ){
            inputArray.push(app.activeDocument.colorSamplers[sampleIndex].color);
        // make sure the top layer is the activeLayer
        app.activeDocument.activeLayer = app.activeDocument.layers[0];
    // create arrays of the color values:
    var theArray = [[0, 0, 0, 0, 0, 0]];
    for (var m = 0; m < inputArray.length; m++) {
    theArray.push([inputArray[m].rgb.red, outputArray[m].rgb.red, inputArray[m].rgb.green, outputArray[m].rgb.green, inputArray[m].rgb.blue, outputArray[m].rgb.blue]);
    theArray.push([255, 255, 255, 255, 255, 255]);
    // sort;
    theArray.sort(sortArrayByIndexedItem);
    // makeCurveAdjustmentLayer();
    rgbCurvesLayer (theArray)
    ////// make rgb curves layer //////
    function rgbCurvesLayer (theArray) {
    // =======================================================
    var idMk = charIDToTypeID( "Mk  " );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idAdjL = charIDToTypeID( "AdjL" );
            ref2.putClass( idAdjL );
        desc5.putReference( idnull, ref2 );
        var idUsng = charIDToTypeID( "Usng" );
            var desc6 = new ActionDescriptor();
            var idType = charIDToTypeID( "Type" );
                var desc7 = new ActionDescriptor();
                var idpresetKind = stringIDToTypeID( "presetKind" );
                var idpresetKindType = stringIDToTypeID( "presetKindType" );
                var idpresetKindDefault = stringIDToTypeID( "presetKindDefault" );
                desc7.putEnumerated( idpresetKind, idpresetKindType, idpresetKindDefault );
            var idCrvs = charIDToTypeID( "Crvs" );
            desc6.putObject( idType, idCrvs, desc7 );
        var idAdjL = charIDToTypeID( "AdjL" );
        desc5.putObject( idUsng, idAdjL, desc6 );
    executeAction( idMk, desc5, DialogModes.NO );
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc8 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var idAdjL = charIDToTypeID( "AdjL" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref3.putEnumerated( idAdjL, idOrdn, idTrgt );
        desc8.putReference( idnull, ref3 );
        var idT = charIDToTypeID( "T   " );
            var desc9 = new ActionDescriptor();
            var idpresetKind = stringIDToTypeID( "presetKind" );
            var idpresetKindType = stringIDToTypeID( "presetKindType" );
            var idpresetKindCustom = stringIDToTypeID( "presetKindCustom" );
            desc9.putEnumerated( idpresetKind, idpresetKindType, idpresetKindCustom );
            var idAdjs = charIDToTypeID( "Adjs" );
                var list1 = new ActionList();
                    var desc10 = new ActionDescriptor();
                    var idChnl = charIDToTypeID( "Chnl" );
                        var ref4 = new ActionReference();
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idRd = charIDToTypeID( "Rd  " );
                        ref4.putEnumerated( idChnl, idChnl, idRd );
                    desc10.putReference( idChnl, ref4 );
                    var idCrv = charIDToTypeID( "Crv " );
                        var list2 = new ActionList();
    // add r points;
    for (var m = 0; m < theArray.length; m++) {
              addCurvePoint (list2, theArray[m], 0)
                    desc10.putList( idCrv, list2 );
                var idCrvA = charIDToTypeID( "CrvA" );
                list1.putObject( idCrvA, desc10 );
                    var desc15 = new ActionDescriptor();
                    var idChnl = charIDToTypeID( "Chnl" );
                        var ref5 = new ActionReference();
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idGrn = charIDToTypeID( "Grn " );
                        ref5.putEnumerated( idChnl, idChnl, idGrn );
                    desc15.putReference( idChnl, ref5 );
                    var idCrv = charIDToTypeID( "Crv " );
                        var list3 = new ActionList();
    // add g points;
    for (var m = 0; m < theArray.length; m++) {
              addCurvePoint (list3, theArray[m], 2)
                    desc15.putList( idCrv, list3 );
                var idCrvA = charIDToTypeID( "CrvA" );
                list1.putObject( idCrvA, desc15 );
                    var desc20 = new ActionDescriptor();
                    var idChnl = charIDToTypeID( "Chnl" );
                        var ref6 = new ActionReference();
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idBl = charIDToTypeID( "Bl  " );
                        ref6.putEnumerated( idChnl, idChnl, idBl );
                    desc20.putReference( idChnl, ref6 );
                    var idCrv = charIDToTypeID( "Crv " );
                        var list4 = new ActionList();
    // add b points;
    for (var m = 0; m < theArray.length; m++) {
              addCurvePoint (list4, theArray[m], 4)
                    desc20.putList( idCrv, list4 );
                var idCrvA = charIDToTypeID( "CrvA" );
                list1.putObject( idCrvA, desc20 );
            desc9.putList( idAdjs, list1 );
        var idCrvs = charIDToTypeID( "Crvs" );
        desc8.putObject( idT, idCrvs, desc9 );
    executeAction( idsetd, desc8, DialogModes.NO );
    return app.activeDocument.activeLayer;
    ////// add curve point //////
    function addCurvePoint (theList, valueHor, theNumber) {
    var desc11 = new ActionDescriptor();
    var idHrzn = charIDToTypeID( "Hrzn" );
    desc11.putDouble( idHrzn, valueHor[theNumber] );
    var idVrtc = charIDToTypeID( "Vrtc" );
    desc11.putDouble( idVrtc, valueHor[theNumber+1] );
    var idPnt = charIDToTypeID( "Pnt " );
    theList.putObject( idPnt, desc11 );
    ////// sort a double array, thanks to sam, http://www.rhinocerus.net/forum/lang-javascript/ //////
    function sortArrayByIndexedItem(a,b) {
    var theIndex = 0;
    if (a[theIndex]<b[theIndex]) return -1;
    if (a[theIndex]>b[theIndex]) return 1;
    return 0;

  • How can I blur a selection on a layer (gaussian blur) without the colors/transparency outside the borders of the selection bleeding through?

    I am a digital artist, and I switch between programs a lot because sometimes photoshop just doesn't do everything, but I would really like to know if photoshop can help me with this. Is there a way for me to blur a selection without the edges becoming transparent (or color from outside the selection bleeding in). This really bothers me, and my other programs don't have this issue.

    Would align to pixel grid help?
    Left is not aligned, Right is aligned to pixel grid

  • How do you prevent Acrobat PDFMaker from rasterizing vector graphics?

    I am using the "Create PDF" button (provided by the Acrobat PDFMaker in Acrobat X) to create a PDF from a Microsoft Word 2010 document.
    This works fine, except that vector graphics in the Word document appear in the resulting PDF as raster graphics. (That is, when I zoom in, document text outside the graphics appears smooth, but the graphics are blocky; and text inside the graphics that should be retained as text - it's not converted to curves - is just pixels.)
    The original artwork for the vector graphics is in CorelDRAW X6 (sorry, Adobe!).
    I have exported the following files from the original vector drawing in CorelDRAW:
    - EPS (with TIFF preview)
    - Windows metafile (.wmf)
    - Enhanced metafile (.emf)
    I can insert any of these files into Word okay (Insert > Picture), but the resulting PDF always contains a rasterized (bitmapped) version of the vector graphic ("line art").
    From memory, this didn't use to happen in my previous working environment (Acrobat 8 Pro with Word 2003, using artwork exported from CorelDRAW 12).
    How do you prevent Acrobat X PDFMaker from rasterizing vector graphics? Or is Word 2010 (or CorelDRAW X6) somehow to "blame" here?

    Transparency Flattening is being invoked.
    From the Create PDF button, select Properties, what is your setting for Default Settings? Select High Quality Print

  • How do i prevent history from being cleared? prevent privacy browsing?

    How do I prevent privacy browsing and/ or prevent history from being deleted from son's computer?

    Note that removing or disabling "Private Browsing" will not make it impossible to delete private data like visited websites (history) or cache.
    There are a lot of ways to clear such data, either via [[Clear Recent History]] or directly by deleting the History in the Library or sidebar.
    Private Browsing makes it easier because all data is kept in memory and nothing is saved to disk, so nothing needs to be removed.
    If you want to see which sites have been visited then you should look at others means outside Firefox like a router or firewall with a password protected logging feature that can't be bypassed or a program like [http://www.wireshark.org/download.html Wireshark].
    See also http://kb.mozillazine.org/Parental_controls

  • RAW files look corrupted with color streaking during import

    During import in Lightroom about 25% of my files look corrupted (with color streaks, etc.). The RAW images upload perfectly in iPhoto on the same computer but for some reason will become corrupted in Lightroom. I am able to delete the corrupted images in the LR Library and reload them with about a 50% success rate. I've tried different memory cards, cf importers, etc. Only an issue in LR. Sometimes they export with the streaking and other times they export perfectly fine. Even if they export fine it makes it impossible to edit in LR. Below is an example of how the image appears. Any answers?

    Raw files have a camera-embedded JPG. 
    I would guess the files are corrupt, LR is showing you this corruption, while other programs are only interpreting the JPG and hiding the corruption.
    Can you upload one of these photos that iPhoto shows as ok, while LR shows corruption?  Upload one to www.dropbox.com <http://www.dropbox.com>  and post a public download link, here.

  • HT1349 How to stop spinning color wheel and open macair?

    How to stop spinning color wheel so can open Mac air system?

    Thanks for your suggestions everyone, however....
    I just checked out the activity monitor when FCP was being sluggish. FCP was using only 300mb of real memory, and 1GB of virtual memory, even though there was more or less 1gb of real RAM completely unused. I quit and relaunched FCP, and the sluggishness disappeared. Now it is using 200 odd and 650mb of real and virtual memory respectively, and there's still much the same amount of RAM completely free - this looks like the way FCP genreally behaves, and I have to wonder if the sluggishness has much to do with how much RAM I have - it's not using it all whether it's being sluggish or not. I don't want to spend money on more RAM if I don't need to - is this absolutely definately a RAM issue, seeing as there's still nearly a GB free when it's being sluggish? Or is FCP just using virtual memory when it doesn't have to?
    In the manual it says that the memory & cache settings in system settings maintain the performance of FCP by preventing it from using virual memory unneccesarily. It says that limiting the amount of RAM used helps, which seems counterintuitive, the obvious thing would be to turn it up to full. Can anyone tell me the optimum setting for the memory panel in system settings?

  • How to make the color of one picture to be the same as another one

    I want to change the orange color of this button:
    to the dark blue(at the top) of this logo,
    How could I do this? I am not that familiar with photoshop, please show me the detailed steps if it is possible, thanks

    Hi there
    Below are instructions on how to recreate the gradient effect of the orange button using the dark blue color from the logo. It is difficult to change the color of a flattened gradient like the one in the orange button. However, recreating the button is a fairly simple process.
    Step 1: Open both the button and the logo in Photoshop.
    Step 2: Go to the logo image and select the Eyedropper tool from the tool bar, highlighted below. Then, click on the dark blue color in the logo.
    Step 3: Go back to the button image and go to your Layers Panel. Create a new layer using the icon highlighted below.
    Step 4: From the tool bar, select the Paint Bucket Tool, located directly below the eraser tool. If you don't see it, click and hold on the gradient tool and a submenu should pop out. With the Paint Bucket Tool selected, click on the canvas area to fill it with the dark blue color from the logo.
    Step 5: Create a new layer from the layers panel using the same process as Step 3.
    Step 6: Click and hold on the Paint Bucket Tool and select the Gradient Tool from the tool bar, as shown below.
    Step 7: At the top of your window, you should see the Gradient Tool menu. Select a transparent linear gradient, using the settings highlighted below.
    Step 8: Click on the dark bue color swatch in your toolbar to bring up the Color Picker dialog box. Drag the white circle in the color field to the upper left corner to select white. Click OK when you are done.
    Step 9: Now you can apply the gradient by clicking and dragging up over the button. Hold the shift button on your keyboard as you drag to create a perfectly vertical line. To create the gradient below, I started from just outside the canvas area and stopped around the middle of the button. This might take a few tries - if you mess up, hit control-Z (Windows) or command-Z (Mac) on your keyboard to undo.
    Step 10: Now that you have your gradient, go to the layers panel and use the Opacity slider in the upper right hand corner of the layers panel to reduce the opacity of the gradient.
    Step 11: Now you can delete the orange button layer by selecting the layer and clicking the delete icon shown below.
    There you go! Now you can save your button and use it as you'd like. If you ever need to change the color, just select the dark blue layer and use the paint bucket tool to fill it with whatever color you want. Below I have included a side-by-side comparison with the original orange button.
    If you have any further questions or need clarification, just ask!
    Good luck!

  • How do I prevent nav links at bottom of site from wrapping?

    Mac OS 10.6.7
    Dreamweaver CS5.5
    How do I prevent nav links at bottom of site from wrapping? And how do I right justify the links?
    I changed something in CSS and now the footer links are wrapping. Previously, the links were at right/bottom of each page. When the browser window was made too narrow to display them, they would disappear along with the righthand side of the page. Now they wrap into multiple lines and expand out of the footer.
    HTML:
    <div class="footer">
          <span class="footerAlignLeft">&copy; 2011 Dorsay &amp; Easton LLP. All rights reserved.</span>
          <span class="footerAlignRt"><a href="index.html" title="Dorsay & Easton Home Page">  Home  </a><a href="index.html">|</a><a href="practice.html" title="Dorsay & Easton Practice Areas">  Practice Areas  </a>|<a href="team.html" title="Dorsay & Easton Attorneys">  The Team  </a><a href="contact.html">|  Contact Us  </a>|<a href="sitemap.html">  Sitemap  </a></span>
    </div>
    CSS:
    /* ~~ The footer ~~ */
    .footer {
         position: relative;/* this gives IE6 hasLayout to properly clear */
         clear: both; /* this clear property forces the .container to understand where the columns end and contain them */
         background-color: #CC6600;
         font-size: 10px;
         color: #FFC;
         padding-top: 10px;
         padding-right: 0;
         padding-bottom: 10px;
         padding-left: 10px;
    .footer a, a:link, a:visited, a:hover, a:active , a:focus{
         color: #FFC;
         text-decoration: none;
    .footerAlignRt {
         margin-right: 10px;
         font-size: 120%;
         position: fixed;
         left: 520px;
         text-wrap: suppress;
         text-align-last: right;
    Thanks!
    gotsowell

    Rather than posting code snippets, it's best if you upload your problem page and post a link here so we can view the live page in our browsers.

  • I am sharing a apple id acount with my family but when i synced my phone to the computer it erased all of my imformation and put the other phone's imformation on it. I was wondering how I can prevent this from happening?

    I am sharing a apple id acount with my family but when I synced my iphone to the computer it erased all of my imformation and put the other phone's imformation on it. I was wondering how I can prevent this from happening?

    If the ringtones are on the old device just plug it in and do a transfer of purchases then they will be on the computer to sync to the new device.

  • Probably asked and answered a million times but my laptop died and my boyfriend and i are now sharing a computer when i went to back up my contacts i ended up with all of his! Is there a way to get them off and how do i prevent this from happening again?

    probably asked and answered a million times but laptop died and my boyfriend and i are now sharing a computer when i went to back up my contacts i ended up with all of his? Is there a way to get them off without deleting each one? Also how do i prevent this from happening again? can someone direct me to some info on multiple phones on one itunes i am lost.

    Hey there 79usma79!
    I have a couple of articles for you that can help you troubleshoot the issues you are seeing with iTunes on Windows XP. The first is a general troubleshooting article, which can be found right here:
    iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1421
    This article can help you find out if there are any conflicts between your copy of Windows XP and iTunes, and can tell you what to do if there are. Before going down the troubleshooting route though, you should take a look at this article, which can help you back up your entire iTunes library to an external hard drive, so if this issue is recurring, you will be able to restore from that backup and will not have to worry about losing your playlists or music again:
    iTunes: Back up your iTunes library by copying to an external hard drive
    http://support.apple.com/kb/HT1751
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • My child accidentally rented a movie on Apple TV.  Is there a way to refund the rental if we don't watch it?  How can I prevent this from happening?  Is there a way to password protect future purchases?

    My child accidentally rented a movie on Apple TV.  Is there a way to refund the rental if we don't watch it? 
    How can I prevent this from happening?  Is there a way to password protect future purchases?

    Did you try Parental Controls?
    Apple TV: Understanding Restrictions (parental controls) - Apple Support
    See if that does the trick: I think there's a way for you to request a password for purchases, but still be logged in.

  • How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    @How do you prevent the organizer from mixing the order of pictures when down loading off the memory card?

    This sounds like you are using Photoshop Elements, and the Photoshop Elements forum would be best at answering that.
    Photoshop Elements
    Gene

  • Having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this

    having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
    I'm using Lion on an MBP and Numbers is the latest version

    May you give more details about what is wrong with your dates ?
    M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
    When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
    To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
    Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    You can prevent it from being printed by applying a security policy to it
    in Acrobat. The rest can't be prevented, unless you spend  a LOT of money
    on DRM protection.

Maybe you are looking for