simonw/llm

Ollama OCR with URLs fails where filepaths succeed

Open

#1,046 opened on May 18, 2025

View on GitHub
 (4 comments) (1 reaction) (0 assignees)Python (877 forks)github user discovery
attachmentsbughelp wanted

Repository metrics

Stars
 (12,006 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide