Skip to main content
Known Participant
October 15, 2008
Question

resize canvas to selection

  • October 15, 2008
  • 38 replies
  • 109092 views
Hi folks,
is there a way to resize the canvas to the current selection (similar to image>>crop which crops the image to the selection) ?
thanks!

38 replies

April 24, 2021

Select the layer then click Image > Trim > Transparent Pixels.

New Participant
October 16, 2008
Strange. I carefully tried it before posting, but it now works for me, too.
Thanks for your tip.
Participating Frequently
October 16, 2008
It does for me! I made a layer, moved it so that half of the layer was outside the visible canvas area, then used the crop tool. I was able to snap to all the sides of the layer, including the edges that fell outside of the visible range. (it snapped to a point outside in the grey part of the work area.) Executing the crop changed the canvas dimensions to correspond to the edges of the layer.
New Participant
October 16, 2008
OK, admittedly my sentence didn't make any sense. What I wanted to say:

The dummy-layer workaround does not work if any 1 of the 4 borders of the selection (or the dummy-layer for that matter) is outside the current canvas.
Participating Frequently
October 16, 2008
What does that mean?
New Participant
October 16, 2008
The dummy-layer workaround does not work if any 1 of the 4 canvas borders is outside the current canvas.
New Participant
October 16, 2008
October 16, 2008
Turns out it was all down to terminological inexactitude.
Known Participant
October 15, 2008
Thanks J.
Okay 1+2 is what I mentioned. And 3) does not resize the canvas, it delete-crops the image.
Participating Frequently
October 15, 2008
>which OTHER method of canvas resizing did you use than "image>>canvas size" ?? (or did you mean the hide-crop method?)

1) Crop tool
2) Canvas size dialog
3) Selection, then image... crop