Created
July 25, 2018 22:05
-
-
Save ederavilaprado/5e6049e89a6ef1102a9481f4f64f2ad4 to your computer and use it in GitHub Desktop.
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 | |
| for file in ./inp/*.jpg | |
| do | |
| outfile=`basename $file .jpg`.png | |
| echo "convert \"$file\" -fuzz 3% -transparent \"#ffffff\" \"./out/$outfile\"" | |
| done > script.txt | |
| /usr/local/Cellar/graphicsmagick/1.3.30/bin/gm batch -echo on -feedback on script.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment