Skip to content

Instantly share code, notes, and snippets.

@marcosnakamine
Last active March 30, 2017 21:14
Show Gist options
  • Save marcosnakamine/c9f24786ba43fee4274e6cfd1f5dce60 to your computer and use it in GitHub Desktop.
Save marcosnakamine/c9f24786ba43fee4274e6cfd1f5dce60 to your computer and use it in GitHub Desktop.
Shell - Change the quality of all images in the folder
#!/bin/bash
IFS=$'\n'
for i in `find -name '*.jpg'`
do mogrify -quality 80% "$i"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment