xem / obfuscatweet-reloaded

pack 16kb of js into a tweet
Other
5 stars 0 forks source link

Help with creating a PNG with compression #1

Open mikeptweet opened 7 years ago

mikeptweet commented 7 years ago

Great library!

I'm trying to figure out how I can use this library to store text in a PNG, much like https://www.peter-eigenschink.at/projects/steganographyjs/showcase/

But I want the resulting PNG to use Zopfli compression?

Any pointers or code samples you could share?

Thanks

xem commented 7 years ago

Hi, thanks for your interest!

We used http://imaya.github.io/zopfli.js/ to compress our PNG with zopfli.

The PNG generation in our project can be found in these lines: https://github.com/xem/obfuscatweet-reloaded/blob/gh-pages/main.js#L1-L64

xem commented 7 years ago

cc. @subzey (he's the PNG expert here)