Guest User

Untitled

a guest
Nov 18th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. INDEX_RESIZE=0
  2. for file in ./*.jpg; do
  3. [ -e "$file" ] || continue
  4. convert $file -resize 1000x1000^ $file
  5. let INDEX_RESIZE=$(expr $INDEX_RESIZE+1)
  6. done
  7.  
  8. INDEX_THUMBNAIL=0
  9. for file in ./*.jpg; do
  10. [ -e "$file" ] || continue
  11. convert $file -resize 200x200^ ${INDEX_THUMBNAIL}-thumbnail.jpg
  12. let INDEX_THUMBNAIL=$(expr $INDEX_THUMBNAIL+1)
  13. done
Add Comment
Please, Sign In to add comment