ctx2img packs whole repos into image tiles, cutting token use 60-75%

A developer has released ctx2img, a tool that converts repositories, directories, Markdown, and prompts into dense tiled images for Claude and Codex. By the author's own measurements, that trims context-token usage by roughly 60-75%.
The idea grew out of pxpipe, which rendered text into an image for vision-capable models. ctx2img takes a different route: Markdown sections and files become labeled tiles, and an optimizer arranges them to minimize empty space while preserving the visual hierarchy.
The code is on GitHub as h5i-ctx2img.
Related stories
- Show HN: CostClaw, a local CLI that finds your Claude Code spend leaks
- rtk promised 60-90% fewer tokens. JetBrains measured 7.6% more spend
- pxpipe hides text in PNGs to cut token costs by up to 70%
- Claude helped make claude.ai 3x faster in two weeks
- 57% of public Claude Code subagents inherit Bash
- Toolog keeps a forensic log of Claude Code tool calls
Comments
No comments yet. Be the first.
Join the conversation
Sign in with Google to leave a comment. Your name and avatar come from your Google profile, and the comment appears after moderation.
