-->

Converting TIFF to JPEG using .NET [closed]

2019-07-10 04:14发布

问题:

I need to convert a TIFF to JPEG using .NET.

I have already done this succesfully using Windows 7 with a simple Bitmap.Save(). But it seems that this doesn't work on Windows XP (Windows 7 has more complete support for TIFF images).

I saw that there is a .NET library called LibTiff.Net that works well with TIFF, but I didn't find any example code.

Any ideas? Any sample code to convert JPEG to TIFF?

Really thanks

回答1:

I assume that you want to convert TIFF to JPEG (as stated in title of the question) and not JPEG to TIFF (as stated in the question body)

Here is a sample that creates System.Drawing.Bitmap from a TIFF.

You can save the bitmap as a JPEG file.