RenderOptionsJpegQuality Property
The JPEG image quality. Valid values are between 1 and 100.

Namespace: GroupDocs.Viewer.Converter.Options
Assembly: GroupDocs.Viewer (in GroupDocs.Viewer.dll) Version: 19.5
Syntax
public int JpegQuality { get; set; }

Property Value

Type: Int32
The quality.
Examples
The following example demonstrates how to set JPEG quality.
C#
ViewerConfig config = new ViewerConfig();
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = @"C:\storage\document.doc";

ImageOptions options = new ImageOptions();
options.ConvertImageFileType = ConvertImageFileType.JPG;
options.JpegQuality = 100;

List<PageImage> pages = imageHandler.GetPages(guid, options);
See Also