Gimp-Forum.net

Full Version: Snap to Layer Edges or Boundary
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In Photoshop, there is Snap to Layer option, to snap the cropping to an edge of a layer.

In GIMP, we can use Layer > Crop to Content to crop based on a layer boundary, but there is no option to snap the cropping to an edge of a layer.

Please check the screenshot below and see the layer with a red rectangle in it:

Layer Example

How to snap the cropping to the bottom edge of the layer, since there is no Snap to Layer option?

We can do this easily in Photoshop:

Snap to Layer Feature in Photoshop
Someone else will be able to explain it better than me but you will find that if you use the crop tool options you can. Prolly just a different wording than snap is all.
I think this is what you searching for, in the gimp menu : View / Snap to Canvas Edges
(12-14-2022, 03:37 AM)gotanidea Wrote: [ -> ]In Photoshop, there is Snap to Layer option, to snap the cropping to an edge of a layer.

In GIMP, we can use Layer > Crop to Content to crop based on a layer boundary, but there is no option to snap the cropping to an edge of a layer.

Please check the screenshot below and see the layer with a red rectangle in it:

Layer Example

How to snap the cropping to the bottom edge of the layer, since there is no Snap to Layer option?

We can do this easily in Photoshop:

Snap to Layer Feature in Photoshop

What kind of came to mind was:

1- Create guides delimiting the layer.
[attachment=9154]
2- Use the Crop Tool with the option 'Snap to Guides' enabled.  Crop
[attachment=9155]
(12-14-2022, 04:34 AM)sallyanne Wrote: [ -> ]Someone else will be able to explain it better than me but you will find that if you use the crop tool options you can. Prolly just a different wording than snap is all.

Crop Tool has no option to snap to an edge of a layer

(12-14-2022, 08:05 AM)denzjos Wrote: [ -> ]I think this is what you searching for, in the gimp menu : View / Snap to Canvas Edges

It's just for snapping to canvas edges, not an edge of a layer

(12-14-2022, 11:16 AM)Krikor Wrote: [ -> ]
(12-14-2022, 03:37 AM)gotanidea Wrote: [ -> ]In Photoshop, there is Snap to Layer option, to snap the cropping to an edge of a layer.

In GIMP, we can use Layer > Crop to Content to crop based on a layer boundary, but there is no option to snap the cropping to an edge of a layer.

Please check the screenshot below and see the layer with a red rectangle in it:

Layer Example

How to snap the cropping to the bottom edge of the layer, since there is no Snap to Layer option?

We can do this easily in Photoshop:

Snap to Layer Feature in Photoshop

What kind of came to mind was:

1- Create guides delimiting the layer.

2- Use the Crop Tool with the option 'Snap to Guides' enabled.  Crop

Thanks, but I can't find New Guides from Active Layer. Do you use a plug-in or script to use that option?
Move layer after 'View / Snap to Canvas Edges'
[attachment=9157]
Or use the 'Alignment Tool'
[attachment=9158]
A diiferent way Wink

In the crop tool options enable crop current layer only That constrains the crop tool to that layer.

That crops the layer. If you want to crop the whole image to the size then toggle crop current layer only off and apply the crop.

example: https://i.imgur.com/s6mym0x.mp4

edit: another 25 second demo: https://i.imgur.com/9sinhtQ.mp4
(12-14-2022, 11:41 AM)denzjos Wrote: [ -> ]Move layer after 'View / Snap to Canvas Edges'

Or use the 'Alignment Tool'

That snapping option only snaps the cropping to canvas edges

(12-14-2022, 11:47 AM)rich2005 Wrote: [ -> ]A diiferent way Wink

In the crop tool options enable crop current layer only That constrains the crop tool to that layer.

That crops the layer.  If you want to crop the whole image to the size then toggle crop current layer only off and apply the crop.

example: https://i.imgur.com/s6mym0x.mp4

edit: another 25 second demo: https://i.imgur.com/9sinhtQ.mp4

I think this is the simplest way to do it. Thanks