Compress Images
When enabled, generated PNG images will be compressed to reduce file size.
This setting has an effect only when svg text modes are used, or when useLegacyImageFileType is enabled.
Rather than producing 24 bit RGB or 32 bit RGBA truecolor PNG images, instead the converter will produce 8 bit palette images that have undergone quantization and dithering. This is a lossy compression, but visual quality remains very high.
Enabling compression will make conversion slower. On average, expect conversion time to at least double. File size saving can be significant. On files with large images, it is not unusual to see savings of 70-80% on the image file size.
Expected values:
true
false
Default: true
Usage Examples
Command Line
-Dorg.jpedal.pdf2html.compressImages=false
Cloud
{ "org.jpedal.pdf2html.compressImages": false }
Java
conversionOptions.setCompressImages(false);