Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Get the dimensions of most images from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Get the dimensions of most images from the command line
Authored by: bluehz on Dec 07, '03 09:27:08AM

Create an alias in your shell profile (or your fav method of alias) like this:

# get image dimensions
alias imgdim 'sips -g pixelHeight -g pixelWidth $1'

and then just use:
imgdim filename

Matter of fact it even works with multiple files. For example:
imgdim *.pdf



[ Reply to This | # ]