Last active
August 29, 2015 14:19
-
-
Save ykzts/d41e69bcfc02b0b4fee9 to your computer and use it in GitHub Desktop.
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
for f in $(ls *.png); do test 1440 = $(sips -g pixelWidth ${f} | grep "pixelWidth:" | sed -e "s/^ *pixelWidth: *//") && sips -z 1080 1920 ${f} --out resize-${f} && mv resize-${f} ${f}; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment