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.4.0+fc8bb87ea2616e7f35d94e0588d333abae862a7a
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