News for hackers. Stuff that matters.
Re:What is the space overhead of Base64 encoding? by leetbulb on Wednesday January 30, 2019 @06:01PM (#19040547)
Did some further investigation:

i included some text files, hex encoding, and other compression as well :)

raw file list: https://hastebin.com/vazonowuvo.txt

tsv (c/p to spreadsheet: https://hastebin.com/ewohafucem.tsv

---

(interesting) using bzip2, compression is better when the following file are encoded first with base64 or hex: bing.png googlelogo.png peppers_color.jpg

Useless takeaways:

- prefer base64 over hex when encoding already compressed images before further compression

- prefer hex over base64 when encoding plain text / low entropy data before further compression

Re:What is the space overhead of Base64 encoding? by spurgu on Wednesday January 30, 2019 @06:58PM (#19040933)
Heh, so gzipped png's are generally larger than non-gzipped. Samples are prob. heavily compressed though.
Re:What is the space overhead of Base64 encoding? by zrm on Wednesday January 30, 2019 @08:19PM (#19041371)
Not just that, PNG and gzip use the same compression algorithm:

https://en.wikipedia.org/wiki/DEFLATE