.net – Converting TIFF files to PNG in .Net

netpngtiff

I have to build an application in .Net (3.5) to pick up a TIFF file saved from another piece of software and convert it into a PNG so that it can be rendered easily in Internet Explorer. Does anyone know of any libraries (preferably freeware/open source) that will do this conversion for me?

If there aren't any simple ways of getting it to a PNG are there any libraries that I can use to transform it to another IE friendly image format?

I know I can pass a TIFF to the browser and use a plugin to render it but the PCs this is aimed at are locked down and can't install plugins.

Best Answer

System.Drawing.
    Bitmap.FromFile("your image.tif")
              .Save("your image.png", System.Drawing.Imaging.ImageFormat.Png);

Please, also check this: Convert Tiff Images to Gif/Jpeg