Skip to content

Ollama OCR with URLs fails where filepaths succeed #1046

@simonw

Description

@simonw

Really weird bug. I wrote about this here: https://simonwillison.net/2025/May/18/qwen25vl-in-ollama/

llm install llm-ollama
ollama pull qwen2.5vl

llm -a https://static.simonwillison.net/static/2025/poster.jpg \
  'convert to markdown' -m qwen2.5vl

I got back:

It looks like the image you provided is a jumbled and distorted text, making it difficult to interpret. If you have a specific question or need help with a particular topic, please feel free to ask, and I'll do my best to assist you!

But... the same exact prompt after downloading the file gives a much better result:

wget https://static.simonwillison.net/static/2025/poster.jpg
llm -m qwen2.5vl 'convert to markdown' -a poster.jpg

https://gist.github.com/simonw/2b46e932a16c92e673ea09dfc0186ec2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions