Created
June 22, 2022 14:44
-
-
Save andreibosco/ef3db58599348dbc825a6037e8f29983 to your computer and use it in GitHub Desktop.
Remove alpha channel from all PNG images in a directory
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 | |
# Source: https://stackoverflow.com/a/52962485/481690 | |
for i in `ls *.png`; do convert $i -background black -alpha remove -alpha off $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment