Bulk removing transparency from a folder of PNG files
Wed, 13 September 2017
Removing transparency from a single PNG file is easy enough, but what about when you have a folder of hundreds?
Thankfully, there's a quick tool to help this along.
First, install imagemagick with brew:
$ brew install imagemagick
Once that's installed, navigate into the folder that holds the PNG images and run this one command (before you do, you might want to make a backup of the images with their original transparency, as running this will mean you lose the originals).
for f in *.png; do convert "$f" -alpha remove "$f"; done
That's it!