Created
July 10, 2014 19:37
-
-
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
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/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