Created
September 24, 2017 09:19
-
-
Save cengizhancaliskan/1e6d0a673d96ed6fcb5d8ca9d9ca9914 to your computer and use it in GitHub Desktop.
Png to Jpeg for imagemagick
This file contains hidden or 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 | |
dir="/Users/cengizhan/images" | |
find $dir -type f -name '*.png' -print0 | while IFS= read -r -d '' file; do | |
convert "$file" "${file%.*}.jpg" | |
rm -f $file | |
echo "$file converted" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment