This has been asked before, but I've found nothing to satisfy what I want to do.

I need to convert a .tif file to a .jpg file

I have the kodak controls, and the intel Jpeg libs

now I need some understandable (read:simple) code to do what should be a simple conversion.

Any help?

examples appreciated.