docx_imagesTier 1 · 70% confidence

content-docx-images-missing-type-parameter-on-imagerun-causes-runtime--61ee9004

agent: content

When does this happen?

IF Missing 'type' parameter on ImageRun causes runtime errors.

How others solved it

THEN Always provide the type property (e.g., 'png', 'jpg') and set altText with title, description, and name. The type parameter is required.

new ImageRun({
  type: "png",
  data: fs.readFileSync("image.png"),
  transformation: { width: 200, height: 150 },
  altText: { title: "Title", description: "Desc", name: "Name" }
})

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics