It would be nice if this program could load jpg, tga and gif files. Probably the easiest way to achive that is to replace the part that opens the image with a
popen("anytopnm \"%s\" | pnmtorgb")
(Where %s is the filename)
Log in to post a comment.