Skip to content

Compression utility for 4kb - 64kb JavaScript intros based on PNG hack but using Zopfli.

License

Notifications You must be signed in to change notification settings

mgnauck/zopfli-pnginator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zopfli-pnginator

Quick utility to embbed javascript code in a (compressed) PNG image. Adds a custom chunk to the PNG that contains a tiny "html/js unpacking" script. Image data (input javascript source) will be compressed via zopfli (default) or standard deflate. Opening the PNG with file extension .html in a browser will unpack the image contents and execute the javascript.

Compile with gcc or clang: gcc -lz -lzopfli -std=c17 -Wall -Wextra -pedantic zopfli-pnginator.c

Based on:

Uses:

Notes:

About

Compression utility for 4kb - 64kb JavaScript intros based on PNG hack but using Zopfli.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages