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
How to Create Social Media Assets in InDesign with Layered Photoshop Files
See how to take advantage of Photoshop layers on an image imported into InDesign...
Tip of the Week: Turn Off Multiple Layers Simultaneously
This tip was sent to Tip of the Week email subscribers on January 22, 2015. Sign...
InDesign How-to Video: Move Layers From InDesign to Photoshop
In this week’s InDesignSecrets video, David Blatner shows off a script to send a...
