Copy link to clipboard
Copied
Hi!
Is there a way to quickly scale a selected layer so that it fits the canvas of a PS document? I need to load several high resolution images into a small canvas and at the moment the only way I know to resize the images to fit the canvas is to scale them manually by using the free transform box.
In Adobe After Effects you have the option to automatically scale a layer to fit the composition size (either horizontally or vertically). Is there no such option in Photoshop?
Any help will be appreciated!
Copy link to clipboard
Copied
What about File > Automate > Fit Image... ?
Copy link to clipboard
Copied
That is not fitting the image to the Canvas, but to an arbitrary size that needs to be filled in.
Copy link to clipboard
Copied
This is absolutely incorrect. It resizes the whole image with all layers included.
Copy link to clipboard
Copied
I agree with you both, although originally marked as a correct answer, it doesn't satisfy the original request.
Scripts for this:
Copy link to clipboard
Copied
Another option would be to use Variables. Make a blank layer for each image that you want to import, go to Image->Variables->Define. In the Layer dropdown, select one of those blank layers, select the Pixel Replacement checkbox and select from the Method dropdown how you want to fill the layer with your images. Do this for each of those blank layers and then click on the Next button. Click on the floppy disk icon to create a new Data Set, select the layer that you want to replace from the list at the bottom, click on Select File and choose the file that you want to import, rinse and repeat for each layer. Click on Apply and then click on OK. You have to click on Apply otherwise you'll see no changes though you can still use Image->Apply Data Set to then apply the changes that you just made.
Copy link to clipboard
Copied
Thanks for your help guys, both suggestions help in the situation I described.
Copy link to clipboard
Copied
If you don't mind using the Place command, there is an option in the general preferences that will automatically scale a placed image to the current canvas size.
It's supposed to work with pasted images as well, but I've never been able to get it to work that way on my system.
Copy link to clipboard
Copied
Good to know, thanks for the info!
Copy link to clipboard
Copied
Here is an action from Layers Magazine that builds an automatic Action to resize picture to screen.
http://www.layersmagazine.com/create-a-fit-to-screen-photoshop-action.html
Copy link to clipboard
Copied
Another scripted option here:
* Maintain Aspect Ratio
* Fill Canvas (may crop)
* Fit to Canvas (may distort)