Skip to main content

Timeline for Generate an RGB colour grid

Current License: CC BY-SA 4.0

17 events
when toggle format what by license comment
Aug 28, 2024 at 15:17 comment added roblogic TODO: Add a QOI version
Apr 18, 2019 at 19:53 history edited darrylyeo CC BY-SA 4.0
added 146 characters in body
Apr 18, 2019 at 19:42 comment added Benjamin Urquhart @Hohmannfan I guess I can blame apple then
Apr 18, 2019 at 19:42 comment added SE - stop firing the good guys @BenjaminUrquhart Safari does not support the WebP format: caniuse.com/#search=webp
Apr 18, 2019 at 19:39 comment added Benjamin Urquhart @Hohmannfan your solution shows as a broken image for me (Safari)
Apr 18, 2019 at 19:19 history edited darrylyeo CC BY-SA 4.0
added 473 characters in body
Apr 18, 2019 at 19:12 comment added SE - stop firing the good guys To continue the format battle, here's a lossless WebP solution. I can't cut it down anymore without violating the spec, so it narrowly beaten by BMP at 116 bytes. <img src=data:image/webp;base64,UklGRjYAAABXRUJQVlA4TCoAAAAvAoAAAC8gEEjaH3qN+RcQFPk/2vwHH0QCg0I2kuDYvghLcAoX0f/4Hgc>
Apr 18, 2019 at 19:02 history edited darrylyeo CC BY-SA 4.0
added 156 characters in body
Apr 18, 2019 at 18:56 comment added SE - stop firing the good guys Here's a png file that's 15 bytes smaller when base64 encoded: iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAFElEQVR4AWP4z8Dw/z8DEIIodB4A4D0O8pOGuTgAAAAASUVORK5CYII=
Apr 18, 2019 at 18:43 history edited darrylyeo CC BY-SA 4.0
added 842 characters in body
Apr 18, 2019 at 13:08 comment added A C I haven't counted, but I suspect that <img src="data:image/gif;base64,R0lGODdhAwADAMIGAAAA//8AAP8A/wD/AAD/////AAAAAAAAACwAAAAAAwADAAADBhglNSQEJAA7"> is shorter
Apr 18, 2019 at 9:41 comment added mastov @marshalcraft stackoverflow.com/q/2807251/4271479
Apr 17, 2019 at 16:28 comment added marshal craft Sorry for stupid question but is this html tag basically creating png? I just ask cause I've asked on s.e. How to make png with html and j.s. And there are other questions on it as well and typical answer was something with urls and what not. I'd like to understand this method.
Apr 17, 2019 at 9:55 comment added Thomas Weller You might be able to strip /png, since browsers will detect the file type automatically. FF 66 even allows removal of image/png.
Apr 17, 2019 at 9:13 comment added ASCII-only 118: <img src="data:image/bmp;base64,Qk0+AAAAQVNDTxoAAAAMAAAAAwADAAEAGAD/AP///wD/AAAAAAAA//8A/wD//wAAAAAAAP8A////AP8AAAA=">. 14 byte file header, 12 byte application header, 9 of actual data per row (+3 to pad to multiple of 4), yeah
Apr 17, 2019 at 8:26 comment added frarugi87 Good idea but.. It seems to me that a 89 bytes file for a 9 pixel image is a bit too much. Maybe manually writing a BMP header can golf this down. If I'm not wrong, the bare minimum header is 26 bytes, plus 12 of actual data (3 rows of 4 pixels) can trim the image down to 38 bytes, which in base64 means 51 or 52 characters rather than 119
Apr 16, 2019 at 20:38 history answered darrylyeo CC BY-SA 4.0