Skip to content

modern-pdf-lib


modern-pdf-lib / ChromaSubsampling

Type Alias: ChromaSubsampling

ChromaSubsampling = "4:4:4" | "4:2:2" | "4:2:0"

Defined in: src/wasm/jpeg/bridge.ts:61

Chroma subsampling modes for JPEG encoding.

  • '4:4:4': No subsampling — best quality, largest file.
  • '4:2:2': Horizontal subsampling — good balance.
  • '4:2:0': Both directions — smallest file, default for most encoders.

Released under the MIT License.