Last active
January 7, 2016 11:35
-
-
Save joliveras/2dd8a2070d3f2d03b833 to your computer and use it in GitHub Desktop.
bash_profile crop fotos
This file contains 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
alias cropphotos=' | |
cd ~/Desktop/test-imagenes; | |
mkdir 300; | |
cp ~/Desktop/test-imagenes/*.jpg ~/Desktop/test-imagenes/300/; | |
cd 300; | |
sips -Z 300 *.jpg; | |
jpegoptim -m80 --strip-all *.jpg; | |
declare -i i; i=0; for file in *.jpg; do i=`expr $i+1`; mv "$file" $i-300.jpg; done' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment