Skip to content

Instantly share code, notes, and snippets.

@ryancdotorg
Created July 28, 2018 00:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryancdotorg/2970604ecf2492306a9c870316958d30 to your computer and use it in GitHub Desktop.
Save ryancdotorg/2970604ecf2492306a9c870316958d30 to your computer and use it in GitHub Desktop.
#!/bin/sh
# brotlipng.sh by @ryancdotorg
pngcrush -q -force -m 1 -l 0 "$1" ".$1.tmp" && \
brotli -fj ".$1.tmp" -o "$1.br"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment