Use GIMP or other application to convert to PPM ASCII format then
./ppmconvert.php image.ppm

This create a file named output.c

OBS: You need install PHP-cli interpreter
