it's midnight and I'm writing a pngbomb generator, what is my life

I'm now getting sidetracked into writing a streaming png encoder, help

โ€ชhttps://github.com/liclac/pngbombโ€ฌ

โ€ชonly the finest overengineered png bombs on my timelineโ€ฌ

I'm now reading the deflate spec because I'm getting annoyed at how there has to be a more efficient way to store a load of zeroes if you can just make some assumptions

embr ๐Ÿ‡ช๐Ÿ‡บ๐Ÿ‰
Follow

I got the 10.000x10.000px sample image down from 147kb to 12kb, but unfortunately the 100.000x100.000 one now takes 13h to generate (up from 10min), because zlib is rather confused at the notion that somebody would want to compress 1.16GB of zeroes

github.com/liclac/pngbomb/comm

ยท Web ยท 1 ยท 2 ยท 3

lol nvm get rid of some unnecessary copying and it goes from 13h to 25s

unfortunately, it only saved 46b :( github.com/liclac/pngbomb/comm

Sign in to participate in the conversation
queer.af

queer.af, your cosy queer space queer.af is a mastodon instance for those who are queer or queer-adjacent who would like a more pleasant social media experience.