3 ms·
I was hoping this would involve a hex editor and some neat tricks. Here's a one pixel PBM image in 9 bytes: P1 1 1 0 EDIT: I see there's a comment secti
by tdeck 3y ago
I was hoping this would involve a hex editor and some neat tricks. Here's a one pixel PBM image in 9 bytes:
P1
1 1
0
EDIT: I see there's a comment section already there with lots of interesting suggestions.
- NelsonMinar 3y agoPNM formats are the best. Back in the day I wrote a lot of code to generate images thanks to its simple ASCII and binary output formats. That was back before graphics libraries were common, when generating an XBM was difficult and we were still worried about the GIF patent.
- yjftsjthsd-h 3y agoHey, that was my first thought, too:) That format (family) has to be my favorite way to write picture files, even without bothering with an actual library.