pdftools_sdk.pdf2_image.jpeg_image_options
Classes
The settings for JPEG output images |
- class pdftools_sdk.pdf2_image.jpeg_image_options.JpegImageOptions[source]
Bases:
ImageOptionsThe settings for JPEG output images
JPEG images use a lossy compression algorithm that provides a high compression ratio. It is best suited for photographs and content with little or no text.
For the output file name, it is recommended to use the file extension “.jpg”.
- property color_space: JpegColorSpace | None
The color space of the output image
Get or set the color space of the image. If None, the blending color space of the page is used.
Default: pdftools_sdk.pdf2_image.jpeg_color_space.JpegColorSpace.RGB
- Returns:
Optional[JpegColorSpace]
- 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: 85
- Returns:
int