Created
November 26, 2014 15:12
-
-
Save lajlev/030220ad1a182697d51e to your computer and use it in GitHub Desktop.
Bash function to fetch pixel width and height of images.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pixels() { | |
echo -e "w x h | $(sips -g pixelWidth $1 | tail -n1 | cut -d" " -f4) x $(sips -g pixelHeight $1 | tail -n1 | cut -d" " -f4)" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment