Converting ppm to png

c++, image

Solution

Quick and dirty: download Imagemagick and use it from CLI:

convert xx.ppm xx.png

or use Imagemagick's dll API

Problem

In Linux I am getting .PPM files as the image format, this needs to be converted to PNG and then saved. I was looking at some API's to achieve this conversion from PPM to PNG. Can this be done using GDI+, as this would become native? If that is not possible then I think freeimage or pnglib can accomplish that, however I would prefer to use native gdi+ if possible.

Original source