Created
November 24, 2018 14:40
-
-
Save Compro-Prasad/bfd6d577b6c3c4d7739471e506afb790 to your computer and use it in GitHub Desktop.
Convert ppm to png easily
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/sh | |
for i in `ls -- *.ppm`; do | |
echo -n Converting $i ... ' ' | |
convert -- $i `echo $i | sed "s/.ppm/.png/"` | |
echo Done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment