Skip to content

Instantly share code, notes, and snippets.

@joliveras
Last active January 7, 2016 11:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joliveras/2dd8a2070d3f2d03b833 to your computer and use it in GitHub Desktop.
Save joliveras/2dd8a2070d3f2d03b833 to your computer and use it in GitHub Desktop.
bash_profile crop fotos
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