Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

I have two shapes on two different layers. I want to crop the only the part of image only according to the shape on layer 1. I want to keep part of shape on layer 2 which is in the layer1 shape area and want to remove all area outside the shape1.

Please see the following image for better understanding: enter image description here

share|improve this question
add comment

3 Answers 3

up vote 3 down vote accepted

Step 1

Ctrl + Click the thumbnail of Layer 2

enter image description here

Step 2

Ctrl + Shift + Alt + Click the thumbnail of Layer 1. This will give you the intersection of the 2 shapes. enter image description here

Voila! You'll have a selection of the shape you want.

If you are trying to keep your shapes intact, then still do the above, but then do the following:

  • Right-Click the selection created in Step 2
  • Go to Make Work Path...
  • Set the Tolerance to something low like 0.5

Now you'll have a new Path from the selection and your shapes will remain intact.

Result

enter image description here

share|improve this answer
    
Thank you very much for such a detailed answer. It was very helpful to me. –  jay Sep 21 '13 at 14:32
    
No problem, welcome to GD! –  ckpepper02 Sep 21 '13 at 17:30
add comment

You can create a vector mask based on shape 1 for non destructive 'cropping' of the layer 2 shape.

share|improve this answer
add comment

I will piggyback off ckpepper02's answer but I will use shapes with vector masks instead of rasterized shapes. I will also use layer masks to be non-destructive.

Let's say you have this image here:

enter image description here

Your layers would look like this:

enter image description here

CTRL-Click the top layer's vector mask. Then CTRL-ALT-SHIFT-Click the bottom layer's vector mask.

That will select the intersection of the two layers.

Now select the top layer, and click Add layer mask at the bottom of the layer's panel.

enter image description here

enter image description here

Here's the final result:

enter image description here

The added benefit of the layer mask means we do not have to destroy any data. We can, at any time, get back to full shape, or adjust it further if we'd like. If you're unfamiliar with layer masks, I'd suggest you read this quick article to get a better idea.

Also, with this technique we can keep our vector masks as well and we don't need to rasterize our layers.

share|improve this answer
    
Thank you so much for such a wonderful answer. It helped me a lot. Thanks again. –  jay Sep 21 '13 at 14:31
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.