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.21.0+681095c836a504fad5babf64a745b2efeb5bae2c
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