Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. find -type d ( -path ./cache -o -path ./placeholder ) -prune -o -type f -regextype posix-egrep -iregex '.*.(jpg|gif|tif)$' -exec identify {} ; | awk '{ split($3, wh, /x/); } wh[1] < 500 && wh[2] < 500 { print $1; }' | while read i; do convert $i -resize 500 -quality 90 $i ; done
  2.  
  3. find ./ -name "resized*" -exec rm {} ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement