Convert JPG

About JPG File Format

A JPEG is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality. Users can adjust the compression level to achieve the desired quality level while at the same time reduce the storage size. Image quality is negligibly affected if 10:1 compression is applied to the image. The higher the compression value, the higher the degradation in image quality.

Convert from JPG

With GroupDocs.Conversion you can easily convert your JPG document into another file format.
For example JPG to PDF conversion code snippet will look like this:

// Load the source JPG file
using (var converter = new GroupDocs.Conversion.Converter("sample.jpg"))
{
    // Set the convert options for PDF format
   var options = new PdfConvertOptions();
    // Convert to PDF format
    converter.Convert("converted.pdf", options);
}

Put it simply - you just load a JPG file into Converter, select desired output format and all the rest will be done by GroupDocs.Conversion.

Convert to JPG

On the other hand, converting your files to JPG format is also quite simple and natural. The following code sample demonstrates how to convert PDF document to JPG in C# using GroupDocs.Conversion.

// Load the source PDF file
using (Converter converter = new Converter("sample.pdf"))
{
    string outputFileTemplate = Path.Combine(outputFolder, "converted-page-{0}.jpg");
    GroupDocs.Conversion.Contracts.SavePageStream getPageStream = page => new FileStream(string.Format(outputFileTemplate, page), FileMode.Create);

    // Set the convert options for JPG format
    var options = new ImageConvertOptions { Format = GroupDocs.Conversion.FileTypes.ImageFileType.Jpg };
    // Convert to JPG format
    converter.Convert(getPageStream, options);
}

For more detailed code examples of how to convert various file formats to JPG please check articles provided below.

Convert AI to JPGConvert BMP to JPGConvert CDR to JPGConvert CF2 to JPG
Convert CGM to JPGConvert CMX to JPGConvert CSV to JPGConvert DCM to JPG
Convert DGN to JPGConvert DIB to JPGConvert DJVU to JPGConvert DNG to JPG
Convert DOC to JPGConvert DOCM to JPGConvert DOCX to JPGConvert DOT to JPG
Convert DOTM to JPGConvert DOTX to JPGConvert DWF to JPGConvert DWFX to JPG
Convert DWG to JPGConvert DWT to JPGConvert DXF to JPGConvert EMF to JPG
Convert EML to JPGConvert EMLX to JPGConvert EMZ to JPGConvert EPS to JPG
Convert EPUB to JPGConvert FODP to JPGConvert FODS to JPGConvert GIF to JPG
Convert HTM to JPGConvert HTML to JPGConvert ICO to JPGConvert IFC to JPG
Convert IGS to JPGConvert J2C to JPGConvert J2K to JPGConvert JLS to JPG
Convert JP2 to JPGConvert JPC to JPGConvert JPEG to JPGConvert JPF to JPG
Convert JPM to JPGConvert JPX to JPGConvert LOG to JPGConvert MD to JPG
Convert MHT to JPGConvert MHTML to JPGConvert MOBI to JPGConvert MPP to JPG
Convert MPT to JPGConvert MPX to JPGConvert MSG to JPGConvert ODG to JPG
Convert ODP to JPGConvert ODS to JPGConvert ODT to JPGConvert ONE to JPG
Convert OTG to JPGConvert OTP to JPGConvert OTS to JPGConvert OTT to JPG
Convert OXPS to JPGConvert PCL to JPGConvert PDF to JPGConvert PLT to JPG
Convert PNG to JPGConvert POT to JPGConvert POTM to JPGConvert POTX to JPG
Convert PPS to JPGConvert PPSM to JPGConvert PPSX to JPGConvert PPT to JPG
Convert PPTM to JPGConvert PPTX to JPGConvert PS to JPGConvert PSD to JPG
Convert RTF to JPGConvert STL to JPGConvert SVG to JPGConvert SVGZ to JPG
Convert SXC to JPGConvert TEX to JPGConvert TIF to JPGConvert TIFF to JPG
Convert TSV to JPGConvert TXT to JPGConvert VCF to JPGConvert VDW to JPG
Convert VDX to JPGConvert VSD to JPGConvert VSDM to JPGConvert VSDX to JPG
Convert VSS to JPGConvert VSSM to JPGConvert VSSX to JPGConvert VST to JPG
Convert VSTM to JPGConvert VSTX to JPGConvert VSX to JPGConvert VTX to JPG
Convert WEBP to JPGConvert WMF to JPGConvert WMZ to JPGConvert XLAM to JPG
Convert XLS to JPGConvert XLSB to JPGConvert XLSM to JPGConvert XLSX to JPG
Convert XLT to JPGConvert XLTM to JPGConvert XLTX to JPGConvert XML to JPG
Convert XPS to JPG