Link

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);

What's included in your BuildVu trial?

  • Access to download the SDK and run it locally.
  • Access to the cloud trial to convert documents in the IDR cloud.
  • Access to the Docker image to set up your own trial server in the cloud.
  • Communicate with IDR developers to ask questions & get expert advice.
  • Plenty of time to experiment and build a proof of concept.
  • Over 100 articles to help you get started and learn about BuildVu.
  • An exceptional PDF to HTML converter that took over 20 years to build!

Start Your Free Trial