Created
June 28, 2018 16:36
-
-
Save gotev/70b04663a2cdb834bc41da7d599f6ebe to your computer and use it in GitHub Desktop.
Remove alpha channel from PNGs in a directory
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
for file in $(ls *.png); do convert "$file" -alpha remove -alpha off "$file"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need imagemagick. On a mac, you can install it with brew: