{"repo":"MussaCharles/claude-code-image-sanitizer","free":true,"listed":false,"github":"https://github.com/MussaCharles/claude-code-image-sanitizer","clone":"git clone https://github.com/MussaCharles/claude-code-image-sanitizer.git","description":"Auto-resize oversized images and repair corrupted sessions in Claude Code","language":"Shell","stars":26,"topics":["anthropic","claude-code","hooks","image-resize","mcp","screenshot","image-processing"],"license":"MIT","category":"media-processing","readme_excerpt":"Claude Code Image Sanitizer Auto-resize oversized images and repair corrupted sessions in Claude Code. The Problem When using MCP screenshot tools (Chrome DevTools, Playwright, Puppeteer) or dragging/pasting large images into Claude Code, oversized images can corrupt your session with these errors: - \"image dimensions exceed max allowed size\" - \"At least one of the image dimensions exceed max allowed size: 8000 pixels.\" - \"Image was too large. Double press esc to go back and try again with a smaller image.\" Once this happens, your entire session becomes unusable — every subsequent message fails. The only fix is /clear , which loses all your context. This is a known issue affecting many users. The Solution Feature What it does --------- -------------- Prevention Hooks auto-resize MCP screenshots before they corrupt your session Recovery Repair tool fixes already corrupted sessions without losing your work --- Quick Start Prerequisites Install the Plugin Restart Claude Code : done! The plugin is now active. Alternative: Standalone Hooks If you prefer not to use plugins, you can install hooks directly: See Standalone Hooks Documentation for detailed instructions. --- Features Once installed, the plugin works automatically: Feature Description --------- ------------- Screenshot Resize MCP screenshots (Playwright, Puppeteer, Chrome DevTools) auto-resized Read Tool Resize Image files resized before being read fullPage Blocking Prevents fullPage screenshots that would exceed limits ","default_branch":null,"files":null,"tree":[],"storefront":"/r/MussaCharles","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MussaCharles/claude-code-image-sanitizer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}