I am having issues using tifftopnm
Tifftopnm User Manual

By issues I mean I would like to send in an image and get out another image but i just get gibberish to my screen

the manual for this confuses me but if I use tifftopnm Lena.tiff in dos i get gibberish. Is that because I should be using this in a program just as a function call?

It has been a long time since I have used C how would I write a program to use this and then write the image? is it just a binary write?