RGB to PPM converter and RGB file loader

Is there a RGB file to PPM file converter for windows I can download? And is there source code for loading RGB files to my OpenGL program anywhere?

Any hint would be appreciated.

Thank you

You’d definately want to try out Developer’s Image Library, a.k.a. DevIL. It can load, convert, and save between numerous image formats, including RGB and PPM.

Thanks, but somehow it doesn’t work for me.
I got the image using the ilGetData function, and put the image array I got into gluBuild2DMipmaps() funciton. But no texture is shown up. I am reading a .ppm file btw. Any suggestion or is there other image loader?