XImage.Raster
Features
Tech Specs
How-to C#
Pricing

C# Imaging Library
C# Raster - Convert Image to JPEG in C#.NET


Online C# Guide for Converting Image to JPEG in .NET Application



How to convert, export TIFF, PNG, BMP raster image to JPEG file using C#?

  1. Download XImage.Raster C# imaging library
  2. Install C# library to convert, export TIFF, PNG, BMP raster image to JPG file in .NET applications
  3. Step by Step Tutorial










Convert RasterImage to JPEG

Sample Code (convert single frame image to JPEG):

ConvertHandler.Convert("input.png", @"output.jpeg");


Sample Code (convert multi-frame image to JPEG):

RasterImage img = new RasterImage("input.tiff");
img.Save(@"output.jpeg");




How to convert image to JPEG with options applied in C#?



When you convert image to JPEG image file using XImage.Raster C# Imaging library, you can customize and apply the following JPEG image options
  • Progressive if save jpeg file in progressed format. Turn on it if there is a slow internet connection.
  • OptimizedHuffman if use the optimized Huffman codes during encoding instead of using default Huffman codes
  • SaveToGray if save the output jpeg file to gray
  • ColorSpace set the output jpeg file's color space
  • Quality set compression level
  • SubSampleType specify sub sample type for jpeg encoder, use default compress quality 85
  • SmoothImage if smooth the output jpeg file