this post was submitted on 26 Dec 2024
543 points (97.9% liked)

196

17523 readers
785 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196's:

founded 2 years ago
MODERATORS
543
rule (files.catbox.moe)
submitted 3 months ago* (last edited 3 months ago) by [email protected] to c/[email protected]
 

inb4 “it’s actually 14 kb 🤓” it’s the joy that is 1kb in size, here’s an image that’s 1kb:

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 3 months ago (2 children)

Nice!

Did you use some specific soft to compress the png & get rid of the meta data? Because if you don't then it will be way bigger.

Also, you could anti alias the text with colours, that's how it's done on screens toaday, you just don't see it from afar. And lastly, you could reduce the colorspace even more by reusing similarish colors.

[–] [email protected] 4 points 3 months ago (1 children)

I dug up some examples, I don't have the talent needed to remake that, nor the executables for it but this is what people could compress back in the day:

699 bytes:

923 bytes:

1.4kb:

The same but smaller so 770 bytes:

and some eye candy:

2.3kb:

2.1kb:

10kb !

So yeah, hard to push that original under 1kb I guess, but who knows ^^ !

Merry Christmas !

[–] [email protected] 2 points 3 months ago

Shit, you're absolutely right, I missed an (in hindsight very obvious) optimization - bit depth. It's been so long since I've actually needed to worry about it that I forgot that the setting existed! What makes it even worse is that I did already play with quantizing the colors dwon to a more limited space, I just never baked that in as the bit depth haha.

[–] [email protected] 2 points 3 months ago (1 children)

To be honest I'm not sure if the metadata actually matters much or not (I've never had to ultra-optimize like this before), but I just ran it through a PNG size optimizer and let it figure it out haha.

[–] [email protected] 2 points 3 months ago

Back in the day it mattered (metadata) a lot, but mostly because you used lots of images (because of memory defragmentation, so we used only 1 big image, the splash screen shown only at startup, then it was smaller images), and each had those maybe 30 or 150 bytes (IIRC) so it added up.