pdftools_sdk.pdf2_image.tiff_jpeg_image_options
Classes
The settings for TIFF output images using the JPEG compression algorithm |
- class pdftools_sdk.pdf2_image.tiff_jpeg_image_options.TiffJpegImageOptions[source]
Bases:
ImageOptions
The settings for TIFF output images using the JPEG compression algorithm
TIFF allows images to be compressed with JPEG (Joint Photographic Experts Group), which is a lossy compression algorithm. JPEG provides a high compression ratio for 8 and 24 bit images. It is best suited for TIFFs containing photographs and little or no text.
For the output file name, it is recommended to use the file extension “.tif”.
- property jpeg_quality: int
The JPEG quality factor
Get or set the JPEG compression quality. Valid values are 1, or 100, or in between.
Default is 85
- Returns:
int
- property color_space: JpegColorSpace | None
The color space of the output image
Get or set the color space. If null, the blending color space of the page is used.
Default is
pdftools_sdk.pdf2_image.jpeg_color_space.JpegColorSpace.RGB
- Returns:
Optional[pdftools_sdk.pdf2_image.jpeg_color_space.JpegColorSpace]