Skip to content

Tool to inject JavaScript into a valid GIF file.

Notifications You must be signed in to change notification settings

pranav130100/gifjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gifjs

Tool to inject javascript into a valid gif file.
Currently supported image type is gif.

Building:

To build this tool, build-essential and cmake are required (this is for Ubuntu based systems). After installing the dependencies, run the following commands:

$ git clone https://github.com/pranav130100/gifjs.git
$ cd gifjs
$ mkdir build
$ cd build
$ cmake ..
$ make

Usage:

Run gifjs option jsfile.js. The outcoming image file will be named like the input file + the image ending.. Options are currently only gif.

Example:

Code can now be embedded into existing gif files by using the flag -i with a gif file as argument.
Example:
$ ./gifjs gif code.js -i giffile.gif

Usage of GIF file as script is as simple as : $ <script src="giffile.gif">

Background:

This tool allows you to create a picture file that is able to run javascript code.