Radu
Radu

Reputation: 973

Looking for some code to write .gif or .png files (not libpng)

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

Answers (2)

Sam Washburn
Sam Washburn

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

ldav1s
ldav1s

Reputation: 16315

You could possibly run the plotting on the client by using something like Raphaël instead.

Upvotes: 0

Related Questions