Remove alpha channel from multiple images easily on the terminal
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