Skip to content

Instantly share code, notes, and snippets.

@plugnburn
Created July 10, 2014 19:37
Show Gist options
  • Save plugnburn/3364bc56ecc820534143 to your computer and use it in GitHub Desktop.
Save plugnburn/3364bc56ecc820534143 to your computer and use it in GitHub Desktop.
Giffer - seamlessly embed JS into a GIF image to be usable both in <script> and <img> tags
#!/bin/bash
#Usage: giffer.sh input.gif input.js output.gif
(echo -n "GIF89a=/*";tail -c +10 $1;echo -n "*/0;$(<$2);")>$3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment