cc-image-view

Reviewed at commit 1544b15

See the images you paste into Claude Code: thumbnails above the prompt instead of bare [Image #1] tags

Made by
gggodlin
What we checked

Shows thumbnails of images you paste above the prompt, and under sent prompts with hover previews and a zoom pane. It finds the pasted files in Claude Code's temp folder, converts JPEG, GIF and WebP copies to PNG with sips, ffmpeg or ImageMagick if installed, and reads your session transcript for image rows. It makes no network calls.

Review details

Static review of the source at the pinned commit; not run. Registers prompt.submit (only notes the text when it contains an [Image #n] tag), session.start (polls the prompt draft every 200 ms, reads HOME, CLAUDE_CONFIG_DIR, LC_ALL, LANG and the language field of ~/.claude/settings.json to pick English or Traditional Chinese), and ui.render for AbovePrompt, UserMessage and Pane. Uses $.fs.read/list/stat/exists, $.process.run, $.session.id/root/cwd, $.ui.open/invalidate, $.clock and a plugin atom for state. Process calls: id -u, sh scripts that create a private 700 scratch folder under the Claude Code temp root (checks ownership, symlinks and permissions first), mv, grep -F and sed over the session transcript in ~/.claude/projects (only user rows containing an image tag, base64 blobs stripped), a second grep for one full row, base64 -d to write an image from the transcript when the paste cache is gone, and the converters sips, ffmpeg (file protocol only, first frame), magick and convert (memory and disk limits, first frame). All arguments are passed as argv, not interpolated into a shell string except fixed scripts that receive paths as positional parameters. Converted and restored images stay in the temp scratch folder; nothing is deleted. Failures are swallowed and leave the draft as it was. Not reviewed: the converter binaries themselves, which parse the pasted images.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for cc-image-view

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/cc-image-view.svg)](https://modsforclaude.com/mods/cc-image-view/)

← All mods