Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INDEX_RESIZE=0
- for file in ./*.jpg; do
- [ -e "$file" ] || continue
- convert $file -resize 1000x1000^ $file
- let INDEX_RESIZE=$(expr $INDEX_RESIZE+1)
- done
- INDEX_THUMBNAIL=0
- for file in ./*.jpg; do
- [ -e "$file" ] || continue
- convert $file -resize 200x200^ ${INDEX_THUMBNAIL}-thumbnail.jpg
- let INDEX_THUMBNAIL=$(expr $INDEX_THUMBNAIL+1)
- done
Add Comment
Please, Sign In to add comment