Convert image file formats in C# and VB.NET

The GemBox.Imaging .NET library enables you to convert to and from the following image formats, in C# and VB.NET:

  • PNG

  • JPEG

  • GIF

  • TIFF

The following example shows how to convert a JPG image to a PNG image:

Upload your file (Drag file here)
using GemBox.Imaging;

// If using the Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY");

// Load the input image and save it to a selected image file format.
using (var image = Image.Load("FragonardReader.jpg"))
image.Save("Converting.jpg");
Imports GemBox.Imaging

Module Program

Sub Main()

' If using the Professional version, put your serial key below.
ComponentInfo.SetLicense("FREE-LIMITED-KEY")

' Load the input image and save it to a selected image file format.
Using image As Image = Image.Load("FragonardReader.jpg")
image.Save("Converting.jpg")
End Using

End Sub

End Module
Image file which is saved using GemBox.Imaging
Screenshot of an image file converted from JPG to PNG using GemBox.Imaging

The library currently supports the following image formats: JPEG, PNG, GIF, and TIFF. If you need support for other image formats, please create a request on our feedback page or contact support.

Next steps

GemBox.Imaging is a .NET library that provides an easy way to load, edit, save images. GemBox.Imaging also supports file format conversions and image transformations (resize, crop, rotate and flip).