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.9.1+b77910aba6fa7f07fcfd9b66a6f8c5a618f049a3
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