{"version":"2.1.124","anchor":"oversized-image-auto-removal-with-retry","canonical_anchor":"oversized-image-auto-removal-with-retry","heading":"Oversized-image auto-removal with retry","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.124\/e\/oversized-image-auto-removal-with-retry","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.124","markdown":"### Oversized-image auto-removal with retry\n\n**What**\n\nWhen a request to the model fails because an image's dimensions exceed the per-request many-image pixel limit, Claude Code now identifies the offending image, replaces it with a placeholder, and retries automatically.\n\n**Details**\n\n- A new pure-JS image dimension reader recognizes PNG, GIF, JPEG, and WebP (VP8\/VP8L\/VP8X) headers \u2014 no shelling out.\n- On a 400 from the API matching `dimensions exceed max allowed size \u2026 N pixels`, the offending content block is rewritten to text: `[Image removed: dimensions exceeded the 2000px limit for requests with many images]` and the request retries with a log line `(exceeded 2000px many-image limit); retrying.`\n- Retry is gated by the existing image-pre-resize logic so requests that wouldn't fit even after rescaling fail fast.\n\n**Evidence**\n\nImage dimension parser and retry path (search for `\"[Image removed: dimensions exceeded the 2000px limit for requests with many images]\"` and `\"retry:image-dimension:\"`)."}