I have a number of layers in a Photoshop document.
I want to find out what a specific layer's width and height is. How do I do that?
I have an action that does this:
Cmd+A, Cmd+C, Cmd+N
When I run this action I'm left with
You then can press Esc to close the window.
( On windows just think of the Cmd as Ctrl )
You can make a selection of the layer for example by ctrl or cmd clicking the layer thumbnail and then looking at the
From the upper right corner where you can see the arrow pointing down, you can find the options and within there you can set the
Here's another answer that is slightly related: How to measure the distances in .psd
Especially the bottom part of the answer that lists methods to exporting layer styles as css, which includes width and height, of course.
For anyone who wants to grab width/height in a single click and copy it, I created a script (based on this answer). You can bind the script to a hotkey too, as described below.
Step 1: Save the script
Copy the code below and save it in a file named "getLayerSize.jsx". If using Notepad, save the file WITH the double quotes.
Step 2: Create an Action
Open the action menu if not already (Window > Actions). Create a group if you prefer. Add a new action, you can set an F-key here.
Step 3: Record a macro that runs the script
Click "Record" to start recording events for the macro. Then run the script from File > Scripts > Browse. Once you run it, close the popup with width/height. Now stop recording.
Test the macro by pressing the hotkey assigned, or run the macro manually. Hopefully it works!
Note: Photoshop may lag if you select a large number of layers or a large group, instead of a single layer. I don't know how to fix that, but just wait for a few moments and it should catch up.
If you get a script error, check that a layer is selected and not a group or adjustment layer.
If you can't see the script for step 3, make sure the filetype is ".jsx". Windows might name it ".jsx.txt" which will count as a text file, and you won't see it.
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?