Skip to content

Instantly share code, notes, and snippets.

@ucnv
Created October 15, 2010 11:23
Show Gist options
  • Save ucnv/628032 to your computer and use it in GitHub Desktop.
Save ucnv/628032 to your computer and use it in GitHub Desktop.
#!/bin/sh
rm out/*
./webpconv -quality 100 -output_dir out img/*
cd out
for f in *.webp; do cat $f | sed 's/a/b/' > x-$f; done
../webpconv -format PNG x-*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment