for file in `ls *.png`
do
extension="${file##*.}"
base="${file%.*}"
convert "$file" -quality 60 "${base}.jpg"
done
Last active
March 15, 2018 19:19
-
-
Save benjaminblack/4953a8f43e71d0e61a0e9287e928ac28 to your computer and use it in GitHub Desktop.
ImageMagick cheat sheet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment