You could simply use guides, have them snap to the selection borders (which they do) then use the crop tool with the "Hide cropped regions" option. Gives the same result, just involves a few more steps.
J Maloney, you mean image>>image size ? As I said, I don't want to resize the image, but the canvas. And I wasn't able to copy anything from the info palette (or did you mean enter the values manually in another dialogue as opposed to copy/paste?)
Mylenium, same thing, as marked bold in my OP, I need to resize the canvas, not crop the image.
>Mylenium, same thing, as marked bold in my OP, I need to resize the
>canvas, not crop the image.
Umm, but that's what you do?! I really don't follow your logic. Technically it doesn't matter which method you employ, as long as the layers retain their pixel data, which is what you seem to require. You can even use the Crop tool to expand the canvas size, btw.
Ed (and everyone else), I think you are confusing 3 different things:
1) image resizing: you take the whole image and multiply the amount of x and y pixels by some factor (or simply change dpi in case you don't resample the image)
2) cropping: a) if your selection is smaller than the current image borders, than you actually delete all the pixelx outside the selection
b) if your selection is bigger than the current image borders, you resize the canvas
c) can be both a) + b)
3) canvas resizing: you just change the size of the active work space for your document.
a) make canvas smaller: like cropping 2a) but your pixels don't get deleted (get them back with image>>reveal all)
b) make canvas bigger: add transparency (or background colour) around the layers
c) can be both a)+b)
If you absolutely need to use some other tool to draw your selection and crop to it, then make your selection, create a new transparent layer and fill it. This will just be a dummy layer. Turn your snap on and use the crop tool, snapping to the edges of the dummy. Crop with the "hide" option checked in the options bar.
>Crop with the "hide" option checked in the options bar.
OK, sorry, I thought you were talking about "shield". I didn't know the "hide" option. Great!
So, if I want to hide-crop to an existing selection, is there no other solution than the workaround with a dummy-layer? It would have been cool if the "resize canvas" dialogue were intelligent and propose the values of the current selection if any such selection exists already.
>> 3) canvas resizing: you just change the size of the active work space for your document.
> No. I don't think you can do this in PS. I've always wanted more of this functionality, akin to pasteboards, and would love to hear someone weigh in on plug-ins/tricks to achieve this. I don't think anyone in this thread is confused, yet. "Canvas resize," as far as I understand PS, is a full crop, where none of data outside the crop is retained.
J, that's not correct. Didn't you ever try? Canvas resizing does *not* delete pixels.
"Yes, but the pixels outside the selection are deleted."
"Crop with the "hide" option checked in the options bar."
I've read and re-read and opened up an experiment image, trying to follow what you want to do, and still don't understand why the italicised reply above (from PeterK) doesn't work for what you're after. I don't even see the need for creating a "dummy" layer.
Maybe you need to explain again, with more specific detail.
Maybe you could detail (using ONLY pixels as your unit of measurement) starting Canvas dimensions, layer dimensions (all data, not just the visible portion), and the dimensions of the selections/crops/final canvas size you want.
In my experiments, the "Hide" option did exactly what I interpreted your needs to be.
BTW, Mark...what version of Photoshop are you using? Might not make a difference, but revealing that info is just a good habit to get into.
Canvas resize will allow you to "reveal all" afterwards, as long as you change your "background" layer to a regular layer. Reveal all only works on the contents of layers, not images consisting of only background.
> Yes, but the pixels outside the selection are deleted."
> "Crop with the "hide" option checked in the options bar."
>I've read and re-read and opened up an experiment image, trying to follow what you want to do, and still don't understand why the italicised reply above (from PeterK) doesn't work for what you're after.
Yes, I already acknowledged that it works. I said "sorry" (because I was mistaken) and "great".
As for your question: I'm using CS3.
> I don't even see the need for creating a "dummy" layer.
Do you see any other way to resize the canvas to a existing selection ?
> I just did (use the crop tool with "hide" selected instead of the default "delete").
good, than we are on the same page :)
>However, to be clear, I still stand by my comment that "canvas resize" from the image... canvas size menu does nothing but crop/delete. Please correct me if I'm wrong.
huh? no, AFAIK "image>>canvas size" does not delete any pixels. It is not true that it "does nothing but crop/delete". If you just acknowledged that resizing the canvas does not delete pixels outside the selection, BUT that "image>>canvas size" DOES DELETE, then how else do you change the canvas size?? I don't know any other method.
I stand corrected. Still doing tests on a background layer only. You are correct, Mark, that Image... canvas size (if applied to a layered doc) does allow to "reveal all" back the pixels you "cropped".
OK, J Maloney. If you can, I would be thankful if you could still reply to my other question: which OTHER method of canvas resizing did you use than "image>>canvas size" ?? (or did you mean the hide-crop method?)
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.