Markus Wichmann wrote:
> So, having one program that reads some standardized input and displays
> it on screen, while another program converts any given image file to
> that standardized format may be more UNIX-like.
9front has programs like that[1].
For Linux, netpbm does the same thing[2].
cat background.jpg | jpegtopnm | pnmtopng > background.png
If netpbm tools supported alpha, it would be great for games. No more
packing around a libpng15.so. You could just fork(), execute pngtopnm
on your image, then read the simple netpbm output.
[1]:
http://man.cat-v.org/9front/1/jpg
[2]:
http://netpbm.sourceforge.net/
Received on Sat Jun 14 2014 - 18:14:25 CEST