Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cropping Layers

Contributor ,
Oct 15, 2011 Oct 15, 2011

Is is not about time that layers as well as the canvas should be cropable using the crop tool?

As far as I can see the only way to crop a layer is to make a selection and delete portions.

Mike Engles

35.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 16, 2011 Oct 16, 2011

If Adobe WERE to change the Crop Tool to work on layers as you suggest, unless it was done in such a way that somehow the default behavior was retained as it is now, there would be a big re-learning curve for a lot of existing/expert Photoshop users, who expect the Crop Tool to work on the entire document.  I'm sure that would be troublesome.

No need to touch the Crop Tool.

Just add a Crop Layer Tool to the existing button collection of Crop Tool/Slice Tool/Slice Select Tool.

Translate
Adobe
Community Expert ,
Oct 15, 2011 Oct 15, 2011

No the crop tool works correctly and crops all layers as well as canvas. If you want to effectly crop a layer that is done by using the rectangle marquee tool. Select the rectangle area you want then do a select inverse and clear the layer area outside the selection. If you rotated the rectangle area you will also need to rotate the the layer after the clear to imatate the croping tools rotating feature. The Camvas size and the rest of the layers will be unchanged.

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 21, 2019 May 21, 2019

freaking lame and a pain in the ass. should be a simple crop tool.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 15, 2011 Oct 15, 2011

Make a selection and add a mask...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2011 Oct 15, 2011

Silkrooster wrote:

Make a selection and add a mask...

Yes using a layer mask is best for it does no destroy the layers pixels. However if you save a layed file the file size is a bit larger because the layer pixels that do not show are still there and are saved. And the layer and layer mask would need to be linked and rotated to imitate the crop tool rotate feature or the laye rotated before adding the layer mask

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 16, 2011 Oct 16, 2011

It seems to me that you are not asking HOW to crop a layer, but suggesting a new program feature which would add that functionality to the crop tool's repertoire. If that is so, you might want to post your suggestion in the forum: http://feedback.photoshop.com/photoshop_family

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 16, 2011 Oct 16, 2011

I can understand where you're coming from, but just a subjective comment: 

If Adobe WERE to change the Crop Tool to work on layers as you suggest, unless it was done in such a way that somehow the default behavior was retained as it is now, there would be a big re-learning curve for a lot of existing/expert Photoshop users, who expect the Crop Tool to work on the entire document.  I'm sure that would be troublesome.

-Noel

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 16, 2011 Oct 16, 2011

If Adobe WERE to change the Crop Tool to work on layers as you suggest, unless it was done in such a way that somehow the default behavior was retained as it is now, there would be a big re-learning curve for a lot of existing/expert Photoshop users, who expect the Crop Tool to work on the entire document.  I'm sure that would be troublesome.

No need to touch the Crop Tool.

Just add a Crop Layer Tool to the existing button collection of Crop Tool/Slice Tool/Slice Select Tool.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 16, 2011 Oct 16, 2011

Hello

Exactly, add an option to use crop tool to crop a layer and cut out unnecessary steps

Mike Engles

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 16, 2011 Oct 16, 2011

Howdy.

acresofgreen: It seems to me that you are not asking HOW to crop a layer, but suggesting a new program feature which would add that functionality to the crop tool's repertoire.

I agree. And like Noel I think I understand where the OP is coming from.

When you use the Marquee Tool to make a selection, inverting the selection and deleting is fine, except that unlike the Crop Tool, the Marquee Tool will not let you adjust the selection once you release the mouse. To adjust it, you have to select Transform Selection. Furthermore, any layer pixels extending beyond the canvas are not deleted, which could cause problems later. These are little things, but they add up. So I think a feature request is a good idea. And it might not  affect the legacy behavior of any tool.

In the meantime, you can make your own Crop Layer Tool. It uses a simple action. A layer mask is created, adjusted, and applied. When invoked, the action adds the mask, unlinks the mask,  and chooses the Transform Tool. Then it pauses for you to make your crop. The first thing you see looks pretty much like Crop Tool. Except that the boundary of the layer is selected instead of the canvas. Note that the layer mask is selected.

CL9.JPG

Drag it just like the Crop Tool. You are transforming the mask, which crops the layer. And you see a live preview, effects and all.

CL10.JPG

When satisfied, hit Enter to accept the crop. The action then applies the mask. The result is below. The layer has been cropped.

CL11.JPG

With Actions in Button Mode and a keyboard shortcut assigned, the Tool/Action is accessed with as much ease and used the same as the Image Crop Tool.

Below is the action.

CL12.JPG

How to make the action.

Start recording.

1. Ctrl+Click on the layer thumbnail.

2. Click on the Add Layer Mask button at the bottom of the layers palette.

3. Click on the link between mask and layer thumbs to release the link.

4. Select the Transfrom Tool (Ctrl+T). The layer mask should still be selected. Drag boundary to a new position. Doesn't matter where. It will need to be reset after the action is recorded. Hit enter.

5. Right Click on layer mask thumbnail and select Apply Layer Mask.

Stop recording.

Now go back to step 4, Transform. Set it to conditional (highlighted above). This will make it stop so you can make your crop. Next, double click on the command. This will select the Transform Tool. In the options bar set the scale percentages highlighted below to 100%,

CL13.JPG

CL15.JPG

This is necessary because Actions won't record a null transformation. But once recorded, you can reset to the original state. And if the mask isn't at 100% we won't see the whole layer when the action stops for the crop.

This may sound like a lot, but it shouldn't take more than 5 minutes to set up the action following the above instructions. And for that small investment, you have a Layer Crop Tool which works just like any other tool. You select it with the mouse or keyboard shortcut, make your adjustment, then hit enter.

FWIW.

Peace,

Lee

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 16, 2011 Oct 16, 2011

When you use the Marquee Tool to make a selection, inverting the selection and deleting is fine, except that unlike the Crop Tool, the Marquee Tool will not let you adjust the selection once you release the mouse. To adjust it, you have to select Transform Selection. Furthermore, any layer pixels extending beyond the canvas are not deleted, which could cause problems later. These are little things, but they add up. So I think a feature request is a good idea. And it might not  affect the legacy behavior of any tool.

Lee

You make some very good points here.  I completly forgot that the selection tool only works within the canvas area  that when you do the select inverse areas outside the canvas area of the layer would not be selected and clear would not clear these unselected  areas outside the canvas area.  The older one gets the more they forget.  Most of the layer corpping I do is a virtual crop of smart object layers with a layer mask that is unlinked from the smart object. When you do that the whole laye remains and there is no problem for you can transform the layer to size the visible objects the size you want and you can position the content you want within the mask visible area.  In fact untill CS5 Layer Mask and smart objects could not be linked.  CS5 cause me an extra step to unlink the layer mask after I added it the the smart object layer. Maybe CS4 I skipped that release.

You action more or less works like I do except I keep the layers pixels and layer mask wthere you delete the layer mask applting its effects.  Your Action would also not work in my work flow without first converting my smart object layers to a normal layer Rasterzise it.  For there is no apply option if you delete a layer mask on a smart object layer you just revert back to the smart object.

What is interesting about your action is the select layer tranparency step for it loades a selection that extends outside of the canvas area in fact if the layer is larger then the canvas on all four sides you will not see any marching ants even if your image window is larger ther the large layer.

Message was edited by: JJMack

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 16, 2011 Oct 16, 2011

arc fixer wrote:

In the meantime, you can make your own Crop Layer Tool. It uses a simple action. A layer mask is created, adjusted, and applied. When invoked, the action adds the mask, unlinks the mask,  and chooses the Transform Tool. Then it pauses for you to make your crop. The first thing you see looks pretty much like Crop Tool. Except that the boundary of the layer is selected instead of the canvas. Note that the layer mask is selected.

I tried your action out and it worked like a dream!  Thank you - I'll be using this frequently!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 17, 2011 Oct 17, 2011

I crop the selected layer by making a selection, pressing Ctrl + J to create a new layer with the selected pixels, and then deleting the original layer. The limitation of the crop tool feature being suggested here will be that it will be limited to rectangular selections only which I rarely use for individual layer cropping.

edit: if a new cropping feature is added  I think the best idea would be to have a menu item "crop layer" using the current selection - this will reduce my workflow from 3 to 2 steps with the ability to add a shortcut.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 17, 2011 Oct 17, 2011

Hi, emil emil.

I crop the selected layer by making a selection, pressing Ctrl + J to create a new layer with the selected pixels, and then deleting the original layer.

I'm a big fan of Ctrl+J. And like you, I'm finicky about extra steps. I got tired of deleting the original layer and deleting "copy" from the end of the new layer name.  Being lazy like I am, I made an action to do it in one click. It is below. As you can see the first step is your trusty Ctrl+J. In fact, this action was the starting point for the Crop Layer action above.

CL18.JPG

1. Ctrl+J   Copies the selection to a new layer.

2. Alt+[     Selects the source layer.

3. Ctrl+T   Transforms the layer, scale 1%. Why? Instead of deleting the layer, we are going to merge the copy down into it to preserve the name. But if there are pixels lurking outside of the canvas, they will be retained. Transforming to 1% insures all the pixels will be within the canvas for the next steps.

4. Ctrl+A   Selects the canvas.

5. Deletes the pixels. Now there are no pixels outside the canvas.

6. Alt+]     Selects the copy layer.

7. Ctrl+E   Merges the copy down, retaining the original name.

I showed all the keyboard shortcuts because when recording actions, it is best to avoid using your mouse when you can. Actions won't record many mouse events. And in the case of selecting layers, selecting a layer with the mouse records the layer name. And it won't run on a layer with a different name. So it's useless. Unless you are only going to use it on layers with that name in the correct stacking order and state. (Of course, you can use your mouse to make menu selections. But there are a few that won't record. But you can add them using Add Menu Item in the Actions flyout menu.)

Anyway emil, I know you are an experienced user. I made my reply so detailed for the benefit of any less experienced users who might be interested.

FWIW.

Peace,

Lee

acresofgreen: Thanks for confirming the practical utility of the action.

Mike: Thanks for prompting me to do something about a little thing that had been annoying me for a while.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 17, 2011 Oct 17, 2011

Nice work, Lee!  Very well conceived!

Now if only there was a way to add a custom button to the Tools Panel...

-Noel

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 18, 2011 Oct 18, 2011

Hi, Noel.

Thanks! When you're lazy, you gotta do something. 

So far as the custom button goes, it's already on my primary toolbar. I run my Actions Palette in Button Mode. It's like the regular toolbar only better. It's a toolbar on steriods. Below is my workspace. My Actions are bottom right and set to Button Mode. As you an see, it dominates the workspace. It's my most important palette after the Layers Palette. I use use it constantly.

CL22.JPG

Below is a closer look at a section of the actions. Most of them perform routine tasks, and replace two or three clicks with one. Some are complicated, but it doesn't matter. It's a button now. Click on it, and it goes. You can see they are grouped and color coded by similar function. You can also see the new Crop Layer Tool has been added to the yellow cluster.

CL19.JPG

Actions can perform long complicated sequences, but they really shine when put to work doing little things you do a lot.  You can have different sets of buttons for different types of projects. You can rearrange them and color them to suit your needs. Including reshaping and resizing the palette. Below is my palette expanded to show all the actions. All invoked by one click.

CL20.JPG

Below is the palette set to different  configurations. Dragging right or left adds or removes columns. Up or down removes or adds rows.

cl21.JPG

Anyway, in terms of function, the Actions Palette in Button Mode is a toolbar. And you can add as many buttons as you want to it.

Noel, as usual, my demo was geared to the full gamut of Forum users. But I'd like to thank you personally for your numerous contributions. I've learned a lot.

Hey JJ: I didn't notice the marching ant thing. I never tried the action on a layer that extended beyond all four sides. Fortunately, it's immaterial to the action.

Peace,

Lee

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 18, 2011 Oct 18, 2011

I knew about actions and button mode (I sell some commercial ones), but it's just not the same as being able to craft a custom tool and put it in the Tools panel.

I am mildly afflicted with a perceptual issue where things can sometimes be hidden from me in plain sight.  If a number of similar things are placed near one another, somehow I reach some cognitive limit, the eyes glaze over, and I just don't see the individual item I'm looking for.  Good examples would be long menus with a lot of entries or the list of actions in a large set.  At that point I find it useful to find things alphabetically (sorted list), positionally (icons in certain places on the desktop or in a panel), or just look for differences in appearance (visually different icons). 

Unfortunately, even though you can color the buttons in the Actions panel (in button mode), this doesn't seem for me to be *quite* enough visual differentiation.  It would be nice to be able to associate icons or thumbnails with Actions in Photoshop full version, as can be done in Photoshop Elements.

Some people say they naturally associate colors with letters or numbers, but to me the colors seem utterly and completely disconnected from reading or recognition of particular items.  I'm not color-blind, but if I had to say whether I respond to the colors of the positions, for example, of traffic lights, I'd have to say the lit position says more to me than the color.  I have to think about it more when I approach an intersection where they've put the lights sideways.

Sorry, probably more than you ever wanted to know about my wacky brain. 

-Noel

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 18, 2011 Oct 18, 2011

Hi, Noel.

I've got one of those wacky brains (as if it wasn't obvious). And I'm partially color blind.  And the same problem with traffic lights. I have to be careful about the colors I choose for my buttons. And you're right, too many buttons is as bad as not enough. That's why I just run one row. And I only use the top half  of that row routinely. Maybe ten buttons. But if they were real buttons, they'd be worn out by now. And after a while, my mouse hand gets trained to the button position and the colors are less important. And those ten buttons save me tons of time. But I was never suggesting anyone should operate with half their screen covered with action buttons. Even I'm not that wacky.

You have hit the nail on the head as to the drawbacks to this scheme. Since the buttons are ultimately identified by text, there is a limit to how small they can be. So they're too big. The palette takes up a lot of room. An icon would be smaller and easier to identify too.

I was sure you knew about Button Mode, so I was a little mystified about your previous post. Your last post solved the mystery. And now everyone knows more about two wacky brains than they want to know. 

Peace,

Lee

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 10, 2019 Jul 10, 2019
LATEST

You can't handle the truth!!!        

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines