Tommi Urtti
I am Jack’s fruitless aspiration

I am Jack’s fruitless aspiration

Remove alpha channel from multiple images easily on the terminal

Remove alpha channel from multiple images easily on the terminal

Tommi Urtti's photo
Tommi Urtti
·Nov 15, 2020·

1 min read

Came across this need when App Store Connect was not accepting my screenshots.

This command loops through .png images in the directory where it is run and removes the alpha channels - note! overwriting the original images.

for i in `ls *.png`; do convert $i -background black -alpha remove -alpha off png24:$i; done

Happy hacking!

 
Share this