Skip to main content
Insert and manage images with perfect Word compatibility. Supports URLs, base64 data, and maintains positioning for Word export.

OOXML Structure

Use case

  • Document illustrations - Add diagrams, charts, and screenshots
  • Product documentation - Include product images and UI screenshots
  • Reports - Embed data visualizations and infographics
  • Branding - Insert logos and company graphics
  • Base64 support - Embed images directly without external files

Options

Configure the extension behavior:
boolean
default:"true"
Allow base64 encoded images
Object
Default HTML attributes for image elements

Attributes

Node attributes that can be set and retrieved:
string
Image source URL or path
string
default:"Uploaded picture"
Alternative text for accessibility
string
Image title/tooltip text
Object
Image dimensions
number
Width in pixels
number
Height in pixels
Object
Image padding/margins
number
Left padding in pixels
number
Top padding in pixels
number
Bottom padding in pixels
number
Right padding in pixels
Object
Margin offset for anchored images
number
Left/right margin offset
number
Top margin offset
string
Custom inline CSS styles
Object
default:"{ type: 'Inline' }"
Text wrapping configuration. The type property controls wrapping mode (e.g., 'Inline', 'Square', 'Tight', 'TopAndBottom', 'None').
Object
default:"{}"
Transform data for rotation, flips, and size extension. Supports rotation (degrees), flipH (horizontal flip), flipV (vertical flip), and sizeExtension properties.

Commands

setImage

Insert an image at the current position
Supports URLs, relative paths, and base64 data URIs
Example:
Parameters:
ImageInsertOptions
required
Image insertion options

setWrapping

Set the wrapping mode and attributes for the selected image Example:
Parameters:
Object
required
Wrapping options

Types

ImageInsertOptions

Options for inserting an image

Source code