Preserve background layer when cropping (script)

I understand that if you choose "Delete Cropped Pixels" in the crop tool, that it will preserve the background layer, as a background layer.  However, I wished that I could still maintain this function when cropping without the delete cropped pixels option checked as well.  It seems like a silly thing to have to recreate that layer as a background manually every time.  Is there a script out there that can do this?

The background layer is a special layer that dose not  support transparency so if the change the canvas size pixels will be added or removed to match the canvas sizes a document need not have a background layer.  In that case the document canvas size is then just a clipping mask for your layers  the size and pixels can remain unchanged.

Similar Messages

  • Lightroom does not create a background layer when editing in Photoshop - on Mac.

    Thought this was a Photoshop problem.  When I select a portion of an image in Photoshop (which has come from Lightroom) and press Delete, it no longer brings up the Fill dialog; it just deletes the pixels.
    After some discussion on the Photoshop forum, I see that now, when I tell Lightroom "Edit in Photoshop", it creates a file which does not have a Background layer, and this causes the Delete key to act differently.  This was not the case several weeks ago, but has just started to happen.  Is there any adjustment I can make to the "Edit In" settings to get a Background layer in Photoshop?
    JK

    You must have changed a setting in Photoshop because  Lr has no influence on how Photoshop treats the background layer.
    There is nothing you can do in Lr to change this behavior of Photoshop.
    What happens in Photoshop is this: For some reason the image is opened with transparent background.Such an image does not have a background layer and the layer at the bottom does not have the constraints of a regular background layer.
    I am not aware of any command or script in Photoshop that would automatically do this on opening a file.
    Try this: Reset your Workspace (>Window >Workspace). If that doesn't help I'd suggest to ask on the Photoshop forum why your Photoshop opens an image with transparent background.
    You could also try to re-install Photoshop, supposedly this would reset any hidden settings that are causing this.

  • Background layer default opening vanishing

    Hi, when you open, let's say a PNG file, it creates a default locked Background layer, fine, now edit it, turn it into Layer 0 for example, and save, again as PNG, ...the next time you open that file, you'll get your Layer 0 and not a Background layer, I definitely need to get rid off that behavior, I need that Background Layer to be there! PNG isn't a PSD or TIFF, why is Photoshop saving Layer infos? and where? in the PNG? in a Cache ? I tried a bit of things to retrieve that "Background layer" when opening but PS CS5 still stores that info somewhere...

    Hello!  If you have unlocked the Background and need a new one, you can reassign a layer to be a Background using the "Background from Layer" command in the Layer menu.  See attached screenshot. 

  • Is it possible to preserve the layer name when I copy and paste from Illustrator into Photoshop?

    Is it possible to preserve the layer name when I copy and paste from Illustrator into Photoshop?
    At the moment it just appears as "Vector Smart Object" in Photoshop and I have to take another step and change the layer name.
    Thank you!

    Not that I know. PS doesn't care for these kinds of things and uses its own naming system.
    Mylenium

  • Does anyone know why the delete and hide options are still missing in the crop tool option bar, despite having changed the background layer to a regular layer?  Thanks!

    Does anyone know why the delete and hide options are still missing in the crop tool option bar, despite having changed the background layer to a regular layer?  Thanks!

    "flying blind."
    "You totally lost me there, and I have no clue as to what your last question means."
    "I think I now know what you mean."
    Evidently language is of difficulty for you. 
    Perhaps the Oxford dictionary can provide you with your much needed “sensible, meaningful” content.
    According to the Oxford dictionary, a dialogue is to "Take part in a conversation or discussion to resolve a problem."  It also states that a dialogue is "A discussion between two or more people or groups, especially one directed toward exploration of a particular subject or resolution of a problem.”
    That IS the inherent nature of posts. A conversation is reciprocation.  Questions, followed by more questions.
    It is not difficult to understand.
    "how to ask your questions correctly for quicker and better answers" is best actualized by simply asking.
    Is it a Mac; is it not, etc.
    That IS sufficient.  That IS "quicker and better answers[ing]."  That IS what a dialogue IS.   And that IS actually what is "sensible," "meaningful," and "detailed." 
    The Oxford dictionary can best delineate and elucidate your lack of comprehension in what ACTUALLY “meaning” is.
    As well as what is "sensible" AND "detailed." 
    By the way, am I being repetitive.
    Still confused.  Let the experts that do not require much explanation respond with "quicker and better answers" for both "sensible, complete" responses." They are not "lost," "blind," or provide "incomplete" drivel.

  • I have several layers for this image: Background, Moon, Tree, Grass and Clouds.  When I try to use the Move tool to move the Moon, the tool jumps to the Tree layer.  The same thing happens with the other layers as well (except the background layer).  How

    I have several layers for my image: Background, Moon, Tree, Grass and Clouds.  When I try to use the Move tool to move the Moon, the tool jumps to the Tree layer.  The same thing happens with the other layers as well (except the background layer).  How can I keep the move tool from jumpimg to the Tree layer?

    1. Pre-select (highlight) the layer to move in the Layers panel.  or-
    2. [ALT+Right mouse click]  to select the wanted layer in the image window.
    and maybe
    3. Set the PS option to "Auto-select" a layer with cursor hover.  (can be very confusing!)

  • Transparent background layer become black when publishing on iWeb

    Dears,
    I used Photoshop CS to create a pic without background. As usual I made my selection, copied it, paste it on a new file. Then a deleted the background layer (tried with or without merging/flattting the pic) and saved it in .jpg but also in .pgn
    When dropping the picture in iWeb 2.0.2, everything looks great. The picture does not have a background.
    But when published on .mac, the background becomes black.
    I tried almost everything when formatting the pic, although the backgr remains black.
    Just before I made the same with a wind turbine pic and it worked perfectly.
    See on: http://web.mac.com/daniel.daplincourt/daniel.daplincourt/Vide.html
    Can anyone help me plsss?
    Thank you!
    Daniel

    I have the same problem with the black backroung on my photo. I saved it over has a png but it still has the black background when I publish it to .mac. I would match it to the background color of iweb but I have a textured background. Is there a step that I am missing when I save it out to a PNG. Any other suggestions would be greatly appreciated. Thanks

  • Why when i make any changes on a background layer is it automatically changing to a layer?

    i have two computers running cc and one if fine the main one has started doing this and it's very anoying!
    Hope someone can help???
    Many Thanks
    Michael

    The Photoshop Background layer does not support transparency there is only one background layer and its the bottom most layer. A Background layer is not required. If you want to add transparency to the background layer you must first convert the background layer to a normal layer.  I the latest release of Photoshop automates that  conversion sometimes for example if you add a layer mask to a background layer the background layer is automatically converted to a normal layer.  There may be other operations that would also convert a background layer to a normal layer.
    Photoshop also also grays out features when the background layer is the current target like free transform....

  • When have multiple layers, move images and text all starting from background layer

    Greetings
    I have an image that has some 24 layers, many of these are text.  When trying to move the images and text all on the same layer yesterday, I ran into problems, but eventually fixed by moving these items starting from the background layer, by using Ctrl\Move. 
    This worked so well that I thought I would show my fellow learners at our regular Friday session on Elements 11 at SeniorNet.  However when I went to show them I could move easily and freely on the background layer - without using Ctrl, just the move tool.  Elements simply moved very quickly from the background layer to the relevent layer with the image or text (as before ?).
    Cannot understand why I could not do that in the first place at home, but I had lots of tries there.  What circumstances could have been different ?

    Did you have "Auto Select Layers" ticked on the tool's option bar?
    It is not clear to me what the ultimate goal of your demonstration is. You can combine  the 24 layers into one layer (referred to as stamp visible layer) without flattening the layer structure. To do this, do the following:
    Open a blank layer at the top of the stack of layers in the layers palette
    Press CTRL+ALT+SHIFT+E on the keyboard
    You can work on this stamp visible layer. The layers below will not be impacted. If you don't like what you have done, simply delete the stamp visible layer, then start over.

  • How to preserve a background color, when generating a PDF file

    I am trying to create a PDF file from some application. Please note that the picture in this application has the black background. So I invoke a Print command and set a printer as "Adobe PDF". As a result, I have generated
     a brilliant PDF file of my picture, but on the WHITE background. When selecting the Adobe PDF printer, I have looked through all its settings ( in the Adobe PDF settings, I have found several tabs: General, Images, Fonts, Color, Advanced, PDF/X), none of them generated the original background color. 
    So how can a generate a PDF file, having the original background color (black, in my case) ?
    Oleg

    Now I feel that the background definition in the Adobe PDF printer and the background definition in the application the Adobe PDF printer is invoked from -- two different things. So I guess how can I define the black background in the Adobe PDF printer? I cannot find such settings.

  • Unlocking Background Layer with lots of other layers

    I've been looking at the similar questions, but no script has worked perfectly yet. I have a series of phoshop actions that I run on a regular basis. I have two version of each, one for if there's a locked background layer, and one for when its already been unlocked. Otherwise my actions error.
    I'd like to simplify the process and have a script run that finds any locked layers (ie: background) and unlocks it, even if there are 15 other layers and even if I have another layer selected. It should also run without errors if there are no locked (background) layers to be found.
    I don't know the first thing about writing my own scripts, so can somebody tell me what lines of code I'd need? Thank you Thank you!

    function makeActiveByIndex( index, visible ){
        var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putIndex(charIDToTypeID( 'Lyr ' ), index )
        desc.putReference( charIDToTypeID( 'null' ), ref );
        desc.putBoolean( charIDToTypeID( 'MkVs' ), visible );
        executeAction( charIDToTypeID( 'slct' ), desc, DialogModes.NO );   
    function getNumberOfLayers(){
        var ref = new ActionReference();
        ref.putProperty( charIDToTypeID( 'Prpr' ), charIDToTypeID( 'NmbL' ) );
        ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID( 'Ordn' ), charIDToTypeID( 'Trgt' ) );
        return executeActionGet( ref ).getInteger( charIDToTypeID( 'NmbL' )) ;
    function getProperty( psClass, psKey, index ){// integer:Class, integer:key
        var ref = new ActionReference();
        if( psKey != undefined ) ref.putProperty( charIDToTypeID( "Prpr" ), psKey );
        if(index != undefined ){
            ref.putIndex( psClass, index );
        }else{
            ref.putEnumerated( psClass , charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        try{
            var desc = executeActionGet(ref);
        }catch(e){ return; }// return on error
        if(desc.count == 0) return;// return undefined if property doesn't exists
        var dataType = desc.getType(psKey);
        switch(dataType){// not all types supported - returns undefined if not supported
            case DescValueType.INTEGERTYPE:
                return desc.getInteger(psKey);
                break;
            case DescValueType.ALIASTYPE:
                return desc.getPath(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.UNITDOUBLE:
                return desc.getUnitDoubleValue(psKey);
                break;
            case DescValueType.STRINGTYPE:
                return desc.getString(psKey);
                break;
            case  DescValueType.OBJECTTYPE:
                return desc.getObjectValue(psKey);
                break;
            case  DescValueType.LISTTYPE:
                return desc.getList(psKey);
                break;
            case  DescValueType.ENUMERATEDTYPE:
                return desc.getEnumerationValue(psKey);
                break;
    var doc = app.activeDocument;
    var layerCount = getNumberOfLayers();
    var invisibleLayers = [];
    var loopStart = Number(!doc.layers[doc.layers.length-1].isBackgroundLayer);
    for(var layerIndex = loopStart;layerIndex<=layerCount;layerIndex++){
        if(!getProperty( charIDToTypeID('Lyr '), stringIDToTypeID( 'visible' ), layerIndex )) invisibleLayers.push(layerIndex);
    for(var hiddenIndex=0;hiddenIndex<invisibleLayers.length;hiddenIndex++){
        makeActiveByIndex( invisibleLayers[hiddenIndex], true);
        if(doc.activeLayer.allLocked) doc.activeLayer.allLocked = false;
        if(doc.activeLayer.pixelsLocked) doc.activeLayer.pixelsLocked = false;
        if(doc.activeLayer.positionLocked) doc.activeLayer.positionLocked = false;
        if(doc.activeLayer.transparentPixelsLocked) doc.activeLayer.transparentPixelsLocked = false;
        doc.activeLayer.visible =  false;

  • Layers problem in PS cs5 extended, all layers change at once, including background layer.

    layers problem in PS cs5 extended, when working in a layer, all layers changes at once i.e size, cropping, smart object etc. even the background layer changes...it is really annoying, please help, My system windows 7 64 bit  4gb ram.  It is not grouped, deleted preferences, usually work in rgb/ 8 bit channel - have same problem with all new projects.

    Hi
    Problem with layers is when I use the crop tool in a layer out of 20, all of them get croped at once including a locked backgound layer.
    When I use smart object in a layer to size down image with transform tool, guess what happens to all the layers in project? all behave odd, changes same as the layer being sized down. If I work images or layers in separate files, once I bring them over to my workspace, all get affected without maintaining their own individuality. This happens with every new project. I think colors are not affecting layers. Layers are not grouped, I do not know anything about linking layers. This problem is stopping me from using photoshop. Please help!!!   
    I had previously a problem with a photoshop bug (GPU sniffer), which I was able to resolve it with reintalling the graphics video card with the help of HP technical support, I am able now to work with repousse however with same video card.
    Let me know if you need me to give you more details.
    thanks,

  • Photoshop CS6 creates new layers when cropping

    when I crop my image CS6 is now creating a layer.  If I check history, there is no sign that a layer was created, just cropped, however if I check under Layer, "Flatten Image" is highlighted.  How do i get rid of this, just started today.

    Rufous03,
    Is Layer 0 the only layer you see in Layers panel after you crop the image or is there still a 'Background' layer under Layer 0?
    In Photoshop CS6, the Crop tool has been refined. There is an option that enables you 'not' to delete cropped pixels when you crop - meaning your image data is not lost - you can go back to the original version at anytime. With this feature enabled (by default, it is - look in the menu bar on top - 'Delete Cropped Pixels' will be unchecked), your 'Background' layer of the image is simply 'Unlocked', therefore leading to 'rename' of layer as 'Layer 0'.
    If you enable 'Delete cropped pixels' option, it will simply get rid of the pixel data that you're cropping out and your layer will remain as 'Background'.
    Trust this helps.
    -ST

  • Image dissapears when cropping

    When using the crop tool, and I expand the cropped area outside the original image, the image dissapears and the area turns white.  How do I turn what ever "feature" this is off?

    When moving the crop beyond the image boundries, the added canvas is shown with the background colour.  To prevent this from happening, double click the background layer to make it a normal layer.  They additional canvas will then appear as transparent.

  • Adobe Media Encoder cuts off video layer when the Ultra Key effect is applied

    I am working on a Mac (10.8.5) using the latest verison of Premiere Pro CC. I am using Ultra Key to remove the chroma key background from the "talent layer" and adding a "new background layer" behind the talent video layer. When I export directly from Premiere, the sequence exports as expected. However, I have many sequences, and wish to speed up the  process using Adobe Media Encoder. When I export the same sequence using Adobe Media Encoder, the top half of the "talent layer" is completly cut off:
    The issue has something to do with the Ultra key effect because when I remove the effect from the "talent layer" it exports in tact (with a chroma key background of course). Adobe Media Encoder CC is up to date as well; are there any known bugs with Media Encoder CC and the Ultra Key effect in Premiere Pro?
    Thanks!

Maybe you are looking for

  • I want to install a mac monitor to a Dell Latitude PC.  I bought a VGA adapter but it still won't activate.

    I want to install a mac monitor to a Dell Latitude PC.  I bought a VDI to VGA adapter but it still won't activate.

  • Cannot uninstall or update itunes

    I am unable to upgrade or uninstall itunes on Windows 7

  • Captivate 4 previewing and publishing issues

    I downloaded and installed Captivate 4 on my computer. I'm a current user of Captivate 3. I imported one of my projects into Captivate 4, but when I try to Preview or Publish the project nothing happens. When I published the project to HTML, it only

  • ESS in MSS Iview

    Hi all, Is ESS in MSS iview equivalent with related activities iview? I'm trying to make ESS for MY employee as a stand alone area instead of merging it in employee profile general data. But if i preview related activities  in the portal content the

  • Setting pfile

    hello, I am a junior DBA and iam working at production site i have some doubts regarding pfile settings My database configuration is ORACLE 9i:(WINDOWS) As far as i know for setting PFILE for WINDOWS OS we should allocate 20% of RAM And the Remaining