Advertisement
overloop

highres_image.sh

May 12th, 2013
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. for pic in *.jpg *.gif *.png; do wh=$( identify $pic | awk '{print $3}' ); w=$( echo $wh | grep -o "^[0-9]\+"); h=$( echo $wh | grep -o "[0-9]\+$" ); if [ $w -ge 1920 ] && [ $h -ge 1080 ]; then cp $pic wp; fi ; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement