Skip to content

Instantly share code, notes, and snippets.

@andreibosco
Created June 22, 2022 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreibosco/ef3db58599348dbc825a6037e8f29983 to your computer and use it in GitHub Desktop.
Save andreibosco/ef3db58599348dbc825a6037e8f29983 to your computer and use it in GitHub Desktop.
Remove alpha channel from all PNG images in a directory
#!/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