[BUG] Small image (558x162px) incorrectly rejected with "exceeds max allowed size... 2000 pixels" error

Status Open
Reported on v2.1.273
Maintainer reply None cached
Activity 1 comment · opened Sep 19, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] 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

  1. Paste a small screenshot into a Claude Code chat message (VS Code extension).
  2. 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

  1. Open Claude Code in the VS Code extension on Windows 11.
  2. 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).
  3. Take a small screenshot with the Windows screenshot tool (result: 558x162 px PNG).
  4. Paste the screenshot into the chat message and send.
  5. 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.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.273 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗