Skip to content

Interface: AddPictureOptions ​

Options for Slide.addPicture. Geometry is in EMU.

Properties ​

contentType? ​

optional contentType?: string

MIME content type (e.g. image/png); sniffed alongside extension when omitted.


extension? ​

optional extension?: string

Image file extension (e.g. png). When omitted it is sniffed from the image's magic bytes; supply it (with contentType) for formats the sniffer does not recognize.


height ​

height: number

Height in EMU (a:ext/@cy); must be positive.


left ​

left: number

Left edge in EMU (a:off/@x).


name? ​

optional name?: string

Shape name (p:cNvPr/@name); defaults to Picture <id>.


top ​

top: number

Top edge in EMU (a:off/@y).


width ​

width: number

Width in EMU (a:ext/@cx); must be positive.