Last active
October 24, 2016 04:12
-
-
Save AppleBetas/7ac9f40373ac54efce4826059d081cad to your computer and use it in GitHub Desktop.
Remove transparency.sh - A quick command to remove transparency from images in a directory with ImageMagick
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
# Remove alpha channel and replace with black | |
mogrify -background black -alpha remove -alpha off *.png | |
# Check alpha channel of images in directory (requires Xcode and command-line tools; not required) | |
sips -g hasAlpha *.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment