Skip to content

Replace Image in DOCX Node

Document/DOCX

Replace Image in DOCX

Replace an image in a DOCX file by matching alt text or shape name

docx_replace_imagemedia
Inputs6
Outputs2
Security exposure3/10
Packagemedia

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

SecurityAttack surface and exposure impact.
3/10High
PrivacyPotential sensitivity of processed data.
2/10High
PerformanceRuntime or resource pressure.
3/10High
GovernancePolicy, audit, or compliance impact.
2/10High
ReliabilityOperational stability considerations.
2/10High
CostExternal or compute cost impact.
0/10High

Input Pins

6

Input

Execution
exec_in

Trigger execution

Template

Struct
template

DOCX template file

FlowPathFlowPath3 fields
pathstringrequired
store_refstringrequired
cache_store_refstring | null
Schema enforced

Identifier

String
identifier

Alt text or shape name of the image to replace

Image

Struct
image

Replacement image file

FlowPathFlowPath3 fields
pathstringrequired
store_refstringrequired
cache_store_refstring | null
Schema enforced

Scale Mode

String
scale_mode

How to handle dimensions: KeepWidth (proportional), KeepHeight (proportional), Stretch (force both, may distort), or None (use new image size)

ImageScaleModeImageScaleMode4 fields
variant 1constvariant

Don't preserve original dimensions — use the new image's native size

const "None"
variant 2constvariant

Keep the original width, scale height proportionally

const "KeepWidth"
variant 3constvariant

Keep the original height, scale width proportionally

const "KeepHeight"
variant 4constvariant

Force both original width and height (may distort the image)

const "Stretch"
Default KeepWidth
NoneKeepWidthKeepHeightStretch

Output Path

Struct
output

Where to save the resulting DOCX file

FlowPathFlowPath3 fields
pathstringrequired
store_refstringrequired
cache_store_refstring | null
Schema enforced

Output Pins

2

Done

Execution
exec_out

Execution continues after replacement

Result

Struct
result

Path to the output file

FlowPathFlowPath3 fields
pathstringrequired
store_refstringrequired
cache_store_refstring | null

Node Info

Internal name
docx_replace_image
Category
Document/DOCX