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
The Photoshop User’s Guide to Motion and Video
Get your design work moving with an app you already know and love!
How to Add Layer Sets to InDesign Files with Snippets
How to add pre-existing layer sets to any InDesign document quickly and easily.
How to Crop to a Layer in Photoshop
Two quick tips for when you want to crop a Photoshop document so the canvas is r...
