THPDFJPEG2000OptimizationProfile Type
Selects how THotPDF.OptimizeLoadedJPEG2000Images re-encodes JPEG 2000 (JPX) images
Declaration
THPDFJPEG2000OptimizationProfile= (j2opDisabled, j2opLossless,
j2opVisuallyLossless);
Unit
HPDFDoc
Values
| Value | Meaning |
|---|---|
j2opDisabled | Skip optimization entirely: no JPEG 2000 image is re-encoded |
j2opLossless | Re-encode candidates with the lossless codestream path so every source pixel is preserved |
j2opVisuallyLossless | Re-encode candidates with the quality-driven encoder path for visually lossless output at a smaller 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 with spot colors or calibrated color spaces that must be preserved are skipped
- Replaced streams are rewritten with the /JPXDecode filter and DeviceRGB output color space, and the byte savings are reported in THPDFLoadedResourceOptimizationInfo