[Cialug] C code for conversion between PPM and PNG files

Ken MacLeod ken at bitsko.slc.ut.us
Tue Jan 25 10:40:20 CST 2011


On Tue, Jan 25, 2011 at 10:15 AM, Morris Dovey <mrdovey at iedu.com> wrote:
> What I'd like is _minimal_ standard-conforming (for portability) C code
> to convert PPM files to PNG and vice versa that I can share freely with
> R&D teams working on the same project around the world to make it easier
> for them to share and publish their findings.

I usually use either ImageMagick or netpbm on the command line, and
both have libraries for linking to.

The API for converting one format directly to another without
manipulation I'm guessing is probably simpler with ImageMagick.

  -- Ken


More information about the Cialug mailing list