You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Small image (558x162px) incorrectly rejected with "exceeds max allowed size... 2000 pixels" error #95503
I have searched existing issues and this hasn't been reported yet
This is a single bug report (please file separate reports for different bugs)
I am using the latest version of Claude Code
What's Wrong?
Description
Pasting a small screenshot into a chat message triggers a rejection error claiming the image exceeds the 2000px dimension limit, even though the actual image is far smaller than that.
Steps to reproduce
Paste a small screenshot into a Claude Code chat message (VS Code extension).
Observe the error response.
Error message received
"At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels"
Actual verified image size
I checked the real pixel dimensions of the pasted file on disk using PowerShell (System.Drawing.Image). Result: 558 x 162 pixels. This is nowhere near the stated 2000px limit.
Additional context
In the same session, images with larger original dimensions (e.g. 1920x2728 and 786x3330) were processed successfully, while this much smaller 558x162 image was rejected. A very large image (1920x8002) was correctly rejected. This inconsistency suggests the size check may be comparing against a stale or cached dimension, or attributing the wrong image's dimensions in a multi-image request, rather than checking the actual file being sent.
Environment
Claude Code VS Code extension
Windows 11
What Should Happen?
A small image (558x162 pixels) should be accepted and processed normally. The 2000px dimension limit should only reject images that actually exceed it.
Error Messages/Logs
At least one of the image dimensions exceed max allowed size for many-image requests: 2000 pixels
Steps to Reproduce
Open Claude Code in the VS Code extension on Windows 11.
Have a conversation in which several images were already attached earlier (some larger than 2000px tall were auto-downscaled and accepted, one at 1920x8002 was rejected).
Take a small screenshot with the Windows screenshot tool (result: 558x162 px PNG).
Paste the screenshot into the chat message and send.
The request is rejected with the error above, even though the file is only 558x162 px. I confirmed the real size of the file on disk with PowerShell (System.Drawing.Image).
Note: I could not reproduce this in a fresh session. It seems to depend on earlier images in the same conversation.
This looks like the same check as #53170, just misfiring on the wrong image. That issue's exact error is:
"An image in the conversation exceeds the dimension limit for many-image requests (2000px). Start a new session with fewer images."
Worth checking whether the check runs against the image actually being uploaded, or against a value left over from whichever image was largest earlier in the same turn. A race there, where the check reads dimensions before the current image finishes processing, would explain why a tiny image only fails when it follows a large one in the same session, and why it can't be reproduced in a fresh session.
Activity
bickov commentedon Sep 22, 2026
This looks like the same check as #53170, just misfiring on the wrong image. That issue's exact error is:
"An image in the conversation exceeds the dimension limit for many-image requests (2000px). Start a new session with fewer images."
Worth checking whether the check runs against the image actually being uploaded, or against a value left over from whichever image was largest earlier in the same turn. A race there, where the check reads dimensions before the current image finishes processing, would explain why a tiny image only fails when it follows a large one in the same session, and why it can't be reproduced in a fresh session.