MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/dem37c/1000byte_website_shows_mona_lisa/f2wln51/
r/tinycode • u/ivanhoe90 • Oct 07 '19
18 comments sorted by
View all comments
9
This comes from Roman Cortes.
If you make a JPEG with a similar quality, it would be also around 1 kB.
But there is not only the image in some "compressed format" (like JPEG). There is also a decompressor for that format.
(Seems like 720 characters for the image + 244 characters for decompressor + 26 characters of HTML)
***** EDIT: It is a 1000-character website, and when stored as UTF8, it is 1300 Bytes.
2 u/Dresdenboy Oct 07 '19 I glanced over the code. It looks like the format contains several data points per byte stored in the string to encode how to draw rectangles with differenz colors.
2
I glanced over the code. It looks like the format contains several data points per byte stored in the string to encode how to draw rectangles with differenz colors.
View all comments
9
u/ivanhoe90 Oct 07 '19 edited Oct 07 '19
This comes from Roman Cortes.
If you make a JPEG with a similar quality, it would be also around 1 kB.
But there is not only the image in some "compressed format" (like JPEG). There is also a decompressor for that format.
(Seems like 720 characters for the image + 244 characters for decompressor + 26 characters of HTML)
***** EDIT: It is a 1000-character website, and when stored as UTF8, it is 1300 Bytes.