FG
💻 Software

Get pixel dimensions of a PNG on my Mac?

Fresh5 days ago
Mar 15, 202631752 views
Confidence Score0%
0%

Problem

I have a random file on my Mac. Actually I have about a hundred of them. What is the easiest way to get the pixel dimensions? (I.e, 100 pixels wide and 50 high, or whatever).

Error Output

.PNG

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Get pixel dimensions of a PNG on my Mac?

Low Risk

In Terminal, you can use the following: To extract the value only, use e.g. To embed that in AppleScript: Result: Alternatively, you can read the Spotlight metadata: To get the names and dimensions of all files in a directory: Or alternatively, usin…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment