   Looking for a standalone PNG loader code.
  I am writing a simple game for cellphone and decide to use png as image fileformat. But I found libpng is too big and will bloat my binary code...   Actually I think all we want from a png file is very simple: to load it.And I guess 8-bit index color and R5G6B5 format will suffice most of our needs.I digged into the libpng doc try to implement my own simple png loader but finally I give up. I am really not a Hoffman guy  :(   So I am thinking if there are simple standalone png file loader available,written in ansi c, easy to port? I think this piece of code will be useful for many of us.   Thanks in advance!   
  Given that libpng is open source, couldn't you just take it and remove all the bits you don't need/use?   ;  here is png loader i made many years agohttp://www.leviatech.fi/biki/download/png_c.zipdoes not support 100% standart but loads most of images.;  Thank you so much biki_! I really love your code!I've got a question, it seems to me that 8-bit paletted pngfile does not compressed at all... Or only the palette is compressed?   ;  that depends on what you compress and what settings you are usingusually random noise will not compress at all. sometimes paletted images have bad properties for compression especially if it's a photograph with lot's of noise, which is not very visible but gives totally random index data.   