Click or drag to resize
Pdftools logo

ImageRecompressionOptionsCompressionQuality Property

The compression quality for lossy image compression algorithms

This property specifies the compression quality for the JPEG and JPEG2000 image compression algorithms. Valid values are between 0 (lowest quality) and 1 (highest quality).

Although the JBIG2 algorithm for bi-tonal images also allows lossy compression, it is not influenced by this property. The JBIG2 compression quality is fixed at 1 (lossless).

Default:


Namespace: PdfTools.Optimization
Assembly: PdfTools (in PdfTools.dll) Version: 1.10.0+8a8a96de3867b60fd3fc0089ea1028db6add63f1
Syntax
C#
public double CompressionQuality { get; set; }

Property Value

Double
Exceptions
ExceptionCondition
ArgumentException[set] If the given value is outside of the range 0 - 1
See Also