THPDFJPEG2000OptimizationProfile Type
Selects how THotPDF.OptimizeLoadedJPEG2000Images re-encodes JPEG 2000 (JPX) imagery
Declaration
THPDFJPEG2000OptimizationProfile= (j2opDisabled, j2opLossless,
j2opVisuallyLossless);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
j2opDisabled | Skip optimisation entirely: no JPEG 2000 image gets re-encoded |
j2opLossless | Re-encode candidates through the lossless codestream path so that every source pixel survives |
j2opVisuallyLossless | Re-encode candidates through the quality-driven encoder path for visually lossless output at a reduced size |
Usage notes
- Pass a value of this type as the Profile parameter of THotPDF.OptimizeLoadedJPEG2000Images together with a Quality between 1 and 100, optional tile dimensions and a progression order
- A decoded image is only replaced when the new codestream is smaller than the original by at least the requested MinimumSavingsBytes, and images carrying spot colours or calibrated colour spaces that must be preserved are skipped
- Replaced streams are rewritten using the /JPXDecode filter and DeviceRGB output colour space, and the byte savings are reported in THPDFLoadedResourceOptimizationInfo