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


โ€ช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 ๐Ÿ‡ช๐Ÿ‡บ๐Ÿ‰

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

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

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

unfortunately, it only saved 46b :(

Sign in to participate in the conversation, your cosy queer space is a mastodon instance for those who are queer or queer-adjacent who would like a more pleasant social media experience.