Guest User

Untitled

a guest
Mar 17th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. exiftool -q -r -ext jpg -if '
  2. $ImageWidth > 1000 ||
  3. $ImageHeight > 1000 and
  4. !print "$Directory/$Filename"' . |
  5. xargs -r0 sh -c '
  6. for file do
  7. mv -i "$file" "$file.bak" &&
  8. convert -resize "1000x1000>" "$file.bak" "$file" &&
  9. touch -r "$file.back" "$file"
  10. done' sh
Add Comment
Please, Sign In to add comment