Using TIFF library to read/write images on Windows - instruction and sample programs:

  1. Download tiff.h, tiffio.h, libtiff.lib, jpeg2tiff.c, tiff2jpeg.c, testimg.tif and save in the same directory.
  2. Double click on jpeg2tiff.c or tiff2jpeg to launch Microsoft Visual C++.
  3. From Projection->Setting->Link, add libtiff.lib and jpeg.lib in Object/library modules.
  4. Press Ctrl+F5 to compile and run (assuming you already have jpeg library ready).

Note: