Created
March 22, 2018 06:31
-
-
Save toshinarin/764083fca6508a9d1e6e1b0baded3be8 to your computer and use it in GitHub Desktop.
Convert png files to jpg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in `\find . -maxdepth 2 -name '*.png'`; do | |
convert $file -quality 90 ${file%.*}.jpg | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment