openclaw - 💡(How to fix) Fix [Bug]: Missing @img/colour module breaks inline screenshot rendering [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#62890Fetched 2026-04-09 08:01:09
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

The sharp package is missing the @img/colour dependency, causing browser screenshots to save to disk but not render inline in chat.

Error Message

Screenshot saves to disk but does not render inline. Error: Cannot find module '@img/colour' in gateway/openclaw/node_modules/sharp/lib/colour.js

Root Cause

The sharp package is missing the @img/colour dependency, causing browser screenshots to save to disk but not render inline in chat.

RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

The sharp package is missing the @img/colour dependency, causing browser screenshots to save to disk but not render inline in chat.

Steps to reproduce

  1. Add Playwright MCP as browser tool in OpenClaw 2026.2.25
  2. Navigate to any URL and take a screenshot
  3. Screenshot saves to disk but fails to render inline

Expected behavior

Screenshot renders inline in chat immediately after the browser tool captures it.

Actual behavior

Screenshot saves to disk but does not render inline. Error: Cannot find module '@img/colour' in gateway/openclaw/node_modules/sharp/lib/colour.js

OpenClaw version

2026.2.25

Operating system

Windows 11

Install method

windows app

Model

Minimax M2.7

Provider / routing chain

Minimax

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The missing @img/colour dependency in the sharp package is likely causing the issue, and installing this dependency may resolve the problem.

Guidance

  • Verify that the @img/colour dependency is indeed missing by checking the node_modules directory of the sharp package.
  • Attempt to install the @img/colour dependency manually using a package manager like npm or yarn.
  • Check the sharp package documentation to see if there are any known issues or workarounds related to the @img/colour dependency.
  • Consider updating the sharp package to the latest version, if available, to see if the issue is resolved.

Example

No code example is provided as the issue is related to a missing dependency, and the solution involves installing the dependency rather than modifying code.

Notes

The solution assumes that the @img/colour dependency is a valid and existing package. If the package does not exist or is not compatible with the sharp package, additional troubleshooting may be required.

Recommendation

Apply workaround: Install the @img/colour dependency manually using a package manager like npm or yarn, as this is the most direct solution to the issue described.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Screenshot renders inline in chat immediately after the browser tool captures it.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING