Skip to content

Instantly share code, notes, and snippets.

@AppleBetas
Last active October 24, 2016 04:12
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 AppleBetas/7ac9f40373ac54efce4826059d081cad to your computer and use it in GitHub Desktop.
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
# 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