A Script to Resize Photoshop Layers to the Canvas
Stop dragging Transform handles and resize Photoshop layers instantly—and precisely—to the canvas.
If you’re an InDesign user who dabbles in Photoshop, you may be wondering where the command is to fit a layer to the canvas, like InDesign’s Fit Content to Frame. In fact, you don’t even have to be a dabbler; any Photoshop user would appreciate that command. Alas, it doesn’t exist. So, we’re forced to waste time fiddling around with the Transform command and dragging handles.
But, a script to instantly (and precisely) resize the currently selected layer(s) to the canvas does exist. It was written by Josh Winn and you can download it—and check out his other scripts—at GitHub.
To install the script, put it in the Presets > Scripts folder inside the Photoshop application folder and restart the program.
For bonus points (and save even more time), assign that thing a keyboard shortcut so you have time to dabble in more interesting stuff than resizing layers.

This article was last modified on November 15, 2024
This article was first published on November 15, 2024
Commenting is easier and faster when you're logged in!
Recommended for you
Automatically Select Layers in Photoshop
Use this trick to select a layer’s content by clicking directly on the canvas, i...
How to Use Layers to Speed Up Your Workflow in InDesign
Learn how to use the Layers panel in InDesign to speed up your workflow, from ma...
Accessing Photoshop Layers in InDesign
Khara Plicanic shows how to access Photoshop layers from within InDesign.
