Skip to content

Instantly share code, notes, and snippets.

@raedatoui
Created March 17, 2012 06:18
Show Gist options
  • Save raedatoui/2055723 to your computer and use it in GitHub Desktop.
Save raedatoui/2055723 to your computer and use it in GitHub Desktop.
process all images in a folder using imagemagick
find . -iname "*.jpg" | perl -e 'for(<>) { chomp $_;@a=split(/\//,$_);$str = "convert -resize 15% -quality 60 $_ _".$a[-1];print $str."\n";`$str`}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment