> I would love to see a simple and fast image uncompressing library with a > standard API for all them. if we just add support for compressing we can > write simple tools to convert between file formats and change background > images or write a nicer slock. > > and im sure jpg+png+gif can fit in less than 2000 LOC.
stb_image is a public domain image decompressor that can read jpeg and png (and others) without zlib dependency, but it's 3800 LOC: http://mollyrocket.com/forums/viewtopic.php?t=315&postdays=0&postorder=asc&start=0&sid=fdc9000f19f612ac5d8ae66e939c0390