Attached image quality reduced

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

when I attached image. It is uploaded and then send the chat. After when I received the answer I tried to see the image but quality was reduced

Steps to Reproduce

see the above.

Expected Behavior

Image should have original quality.

Operating System

Linux

Version Information

v2.7.0-pre.76

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi there!

There is some image compression occurs before an image is sent to the LLM, primarily to manage context windows and token usage. However, I’m not sure where you’re seeing the image again in this degraded form.

After I received the answer, I tried to view the image, but the quality was reduced.

Could you clarify where you’re seeing the image after the fact? Specific prompts/screenshots would be really helpful!

Click on the previous chat, click the attached image.

And you will see the attached image at the degraded state.

So follow up question: If you compress it so much, (a) how model will understand the text there? For example I can not read it. And (b) if this is compressed so much, will model spent more tokens to understand what is there?

Fair point. The compression is pretty aggressive right now (1024px on the longest side)!

I’ll check in on why we went that low! Models are generally pretty good at picking up blurry text, but not perfect

In the meantime, for text-heavy content (terminal output, logs, code), you’ll get better results by providing it as actual text rather than a screenshot. That way the model doesn’t have to try to OCR the image, and you avoid the risk of it misreading something due to compression artifacts.

1 Like