ImageOptions

Overview

ImageOptions is a interface in Aspose.PDF FOSS for TypeScript.

Properties: annotations, background, box, compression, format, height, and 3 more.

Properties

NameTypeAccessDescription
format: ImageFormatReadOutput encoding.
quality: numberReadEncoder quality, 1..100 on the IJG scale.
compression: 'none' | 'deflate' | 'g4'ReadStrip compression, for formats that choose one.
scale: numberReadMultiplier on the 72-DPI point size.
width: numberReadTarget pixel width.
height: numberReadTarget pixel height.
box: 'crop' | 'media'ReadWhich page box defines the viewport.
background: 'white' | 'transparent'Read‘white’ → opaque RGB PNG (default); ’transparent’ → RGBA PNG, unpainted area transparent.
annotations: booleanReadComposite annotation and form-field /AP appearances.