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
#!/bin/sh | |
# | |
# Rescale and compress PNG images. | |
# | |
# Source: https://gist.github.com/wonderbird/b210877179e95ef1145b9d9216167336 | |
# | |
# For every image in all subfolders of SOURCE: | |
# | |
# - Rescale image to a width and height of at most 1024 px. | |
# - Reduce colors to 256 with an optimized palette. |