Convert TIFF to JPG image in C#

Convert TIFF to JPG image in C#

In the recent past, we published a blog post on building a JPG/JPEG to TIFF conversion module in a .NET application. In this article, we will learn how to convert TIFF to JPG image in C#. Since this guide is for .NET developers, we will use this TIFF to JPG conversion library written in C# and offer a huge stack of features. So, do not skip any part of this tutorial that will enable you to implement this functionality by writing a few lines of source code in C#.

The following points will be covered in this guide:

TIFF to JPG Conversion - C# Library Installation

This section demonstrates how to install the .NET library. Download the DLL or install the package via the NuGet package manager.

Install-Package Aspose.Imaging

Convert TIFF to JPG Image in C#

To perform TIFF to JPG conversion in C#, follow these steps:

  1. Invoke the Image.Load method to load the TIFF file and assign it to a TiffImage instance.
  2. Loop through the frames of the TIFF image.
  3. Create a JpegOptions object.
  4. Instantiate a ResolutionSetting to define the image resolution.
  5. Set the resolution unit explicitly using the ResolutionUnit property.
  6. Call the save method to write the image as JPG.

Copy and paste the code below into your main file to convert TIFF to JPG in C#:

The result is shown in the image below:

TIFF to JPG conversion

Get a Free License

You can obtain a free temporary license to try the API without evaluation limitations.

Summing up

This brings us to the end of the blog post. I hope you have learned how to convert TIFF to JPG image in C# programmatically. The TIFF to JPG conversion library offers many additional methods. Visit the documentation for more features.

We also recommend reading our Getting Started guide.

Finally, stay updated with new posts on conholdate.com.

Ask a question

You can share your questions or queries on our forum.

FAQs

How to Convert TIFF to JPG in C#?

Please follow this link to learn about TIFF to JPG conversion in C#.

See Also