Reputation: 973
I am working at a very minimalistic web server that gets the data from a microcontroller and will output some simple charts. That server will possibly run on embedded devices, and I would like to keep the code as small as possible, and ideally without dependencies. I don't want to end up using libpng (and zlib), so I was wondering if anyone has or knows some little code to write a plain png or gif (palleted, no compression).
Upvotes: 1
Views: 778
Reputation: 1827
I know this is an ancient question, but I have used LodePNG for just this.
It's a single C90 file(plus header) and has no zlib or libpng dependencies. It also has a lot of #define's for stripping even smaller.
Upvotes: 1