How to get information about an image (picture) from the Linux command-line?
Fresh3 days ago
Mar 15, 2026417750 viewsConfidence Score1%
1%
Problem
I'm working on a web app and currently migrating some stuff from an old app, but I hate that I have to open an image editor to get some info about images I'm migrating. Things like image dimensions. Is there a command line tool I can use for such tasks in Linux?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to get information about an image (picture) from the Linux command-line?
Low Risk
For some image formats you can just use the command: Not all image formats report the size (JPEG most notably doesn't): For those you will have to use something more elaborate, like: The command is part of the ImageMagick package.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix