This file contains hidden or 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
#!/bin/sh | |
# Script: gif-optimize.sh | |
# Author: Rob Baier | |
# Description: Script used to optimize animated GIF files. | |
# Dependencies: Gifsicle (https://github.com/kohler/gifsicle) | |
# Environment: Tested on MacOS 10.12. Other *nix environments may require some tweaking. | |
# Usage: ./gif-optimize.sh input-filename.gif | |
# Helper function to convert bytes into a human-readable format |