Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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