ollama - 💡(How to fix) Fix Degradation of ollama 0.17.4 => 0.19.0 -- unable to decode images with gemini-3-flash-preview:cloud [5 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#15245Fetched 2026-04-08 02:33:45
View on GitHub
Comments
5
Participants
2
Timeline
8
Reactions
0
Author
Timeline (top)
commented ×5closed ×1cross-referenced ×1labeled ×1

Code Example

$ md5sum sample1.jpg 
617fd385e8732b6d35bb527eff6cefc5  sample1.jpg
$ ollama --version
ollama version is 0.17.4
$ ollama run gemini-3-flash-preview:cloud "Describe in detail what is depicted on this picture" `pwd`/sample1.jpg
Added image '/home/tigran/sample1.jpg'
Thinking...
**Describing the Scene**

I'm currently analyzing the request to describe a picture. The input image shows yellow fruit in a bowl, and I've started forming an initial overview, noting the 
presence of a pile of small, oval objects. The next step is to refine this and provide a more detailed description.


**Analyzing the Fruits**

I've completed my analysis of the fruit, identifying them as likely Barhi dates. I've noted the quantity, shape (oval with some elongation), and color variations, from 
pale lemon to deeper gold. I've also observed the smooth, glossy skin and any blemishes, reflecting their freshness, and included the presence of stems. Now, I'm 
analyzing the container.


**Detailing the Surroundings**

I've moved on to the bowl, noting its round shape and flared rim, centered in the frame. I can see that the contents nearly fill it. I'm viewing it from a high angle, 
almost from the top. The analysis now extends to include the background.

\n\n

My current focus is the background. I've noted a light tan/beige color with a subtle swirl or floral pattern. It appears to be a kitchen countertop or perhaps a 
textured tablecloth. It serves as a neutral backdrop that makes the yellow dates stand out.


...done thinking.

This high-angle, top-down photograph captures a white ceramic bowl filled with fresh yellow dates, likely of the Barhi variety.

**The Subject:**
The bowl is piled high with approximately 15 to 20 dates. These fruits are distinct from the more common brown, dried dates; they are fresh (in the "khalal" stage of 
ripeness). They are predominantly oval or egg-shaped, with a firm, smooth, and glossy texture. Their color is a vibrant, sunny yellow, ranging from a pale lemon hue to 
a deeper golden-yellow. Several dates show minor natural blemishes or small brown spots. Some thin, thread-like yellow fibers (part of the strands they grow on) are 
still attached to a few of the fruits, and small circular indentations are visible at the points where they were attached to the stem.

**The Container:**
The dates are held in a simple, clean, circular white bowl. The rim of the bowl is visible around the edges of the fruit, providing a neutral frame that makes the 
yellow color of the dates pop.

**The Background and Lighting:**
The bowl sits on a neutral-toned surface, possibly a kitchen countertop or a tablecloth, featuring a subtle, swirling tan and beige pattern. 

The lighting is bright and appears to come from the upper left, creating distinct white highlights on the glossy skin of the dates and casting soft, dark shadows toward 
the bottom right within the bowl and onto the surface beneath it. This lighting emphasizes the roundness and three-dimensional volume of the fruit. The overall 
composition is clean and focuses entirely on the freshness of the produce.

---

$ ollama --version
ollama version is 0.19.0
$ md5sum sample1.jpg 
617fd385e8732b6d35bb527eff6cefc5  sample1.jpg
$ ollama run gemini-3-flash-preview:cloud "Describe in detail what is depicted on this picture" `pwd`/sample1.jpg
Thinking...
**Defining the Goal**

I'm currently focused on defining the objective: I must generate a detailed description of an image located at a specific file path. I understand the user needs this 
for a local file. The immediate next step is to figure out my limitations regarding file access, given my AI nature.


...done thinking.

I do not have access to your computer's local file system, so I cannot see the image located at `/home/tigran/Pictures/sample1.jpg`.

To have me describe the image, please **upload it directly to this chat** using the "upload" or "attachment" icon (usually a plus sign or a paperclip) in your message 
box. Once you upload the file, I will be able to see it and provide a detailed description for you.

$ ollama run gemini-3-flash-preview:cloud "Describe in detail what is depicted on this picture" `pwd`/sample1.jpg
Thinking...
**Initiating Image Description**

I'm currently focused on the user's request. My initial analysis reveals they want a detailed description of an image located on their system. I've realized the crucial 
step is accessing this specific image. However, I've hit a snag: I lack the direct access needed to retrieve the file. This is my current priority to proceed.
RAW_BUFFERClick to expand / collapse

What is the issue?

Here is a sample image:

Image

Ollama version 0.17.4 understands this with gemini-3-flash-preview:cloud model perfectly, look:

$ md5sum sample1.jpg 
617fd385e8732b6d35bb527eff6cefc5  sample1.jpg
$ ollama --version
ollama version is 0.17.4
$ ollama run gemini-3-flash-preview:cloud "Describe in detail what is depicted on this picture" `pwd`/sample1.jpg
Added image '/home/tigran/sample1.jpg'
Thinking...
**Describing the Scene**

I'm currently analyzing the request to describe a picture. The input image shows yellow fruit in a bowl, and I've started forming an initial overview, noting the 
presence of a pile of small, oval objects. The next step is to refine this and provide a more detailed description.


**Analyzing the Fruits**

I've completed my analysis of the fruit, identifying them as likely Barhi dates. I've noted the quantity, shape (oval with some elongation), and color variations, from 
pale lemon to deeper gold. I've also observed the smooth, glossy skin and any blemishes, reflecting their freshness, and included the presence of stems. Now, I'm 
analyzing the container.


**Detailing the Surroundings**

I've moved on to the bowl, noting its round shape and flared rim, centered in the frame. I can see that the contents nearly fill it. I'm viewing it from a high angle, 
almost from the top. The analysis now extends to include the background.

\n\n

My current focus is the background. I've noted a light tan/beige color with a subtle swirl or floral pattern. It appears to be a kitchen countertop or perhaps a 
textured tablecloth. It serves as a neutral backdrop that makes the yellow dates stand out.


...done thinking.

This high-angle, top-down photograph captures a white ceramic bowl filled with fresh yellow dates, likely of the Barhi variety.

**The Subject:**
The bowl is piled high with approximately 15 to 20 dates. These fruits are distinct from the more common brown, dried dates; they are fresh (in the "khalal" stage of 
ripeness). They are predominantly oval or egg-shaped, with a firm, smooth, and glossy texture. Their color is a vibrant, sunny yellow, ranging from a pale lemon hue to 
a deeper golden-yellow. Several dates show minor natural blemishes or small brown spots. Some thin, thread-like yellow fibers (part of the strands they grow on) are 
still attached to a few of the fruits, and small circular indentations are visible at the points where they were attached to the stem.

**The Container:**
The dates are held in a simple, clean, circular white bowl. The rim of the bowl is visible around the edges of the fruit, providing a neutral frame that makes the 
yellow color of the dates pop.

**The Background and Lighting:**
The bowl sits on a neutral-toned surface, possibly a kitchen countertop or a tablecloth, featuring a subtle, swirling tan and beige pattern. 

The lighting is bright and appears to come from the upper left, creating distinct white highlights on the glossy skin of the dates and casting soft, dark shadows toward 
the bottom right within the bowl and onto the surface beneath it. This lighting emphasizes the roundness and three-dimensional volume of the fruit. The overall 
composition is clean and focuses entirely on the freshness of the produce.

However, with version 0.19.3 we see a complete failure:

$ ollama --version
ollama version is 0.19.0
$ md5sum sample1.jpg 
617fd385e8732b6d35bb527eff6cefc5  sample1.jpg
$ ollama run gemini-3-flash-preview:cloud "Describe in detail what is depicted on this picture" `pwd`/sample1.jpg
Thinking...
**Defining the Goal**

I'm currently focused on defining the objective: I must generate a detailed description of an image located at a specific file path. I understand the user needs this 
for a local file. The immediate next step is to figure out my limitations regarding file access, given my AI nature.


...done thinking.

I do not have access to your computer's local file system, so I cannot see the image located at `/home/tigran/Pictures/sample1.jpg`.

To have me describe the image, please **upload it directly to this chat** using the "upload" or "attachment" icon (usually a plus sign or a paperclip) in your message 
box. Once you upload the file, I will be able to see it and provide a detailed description for you.

$ ollama run gemini-3-flash-preview:cloud "Describe in detail what is depicted on this picture" `pwd`/sample1.jpg
Thinking...
**Initiating Image Description**

I'm currently focused on the user's request. My initial analysis reveals they want a detailed description of an image located on their system. I've realized the crucial 
step is accessing this specific image. However, I've hit a snag: I lack the direct access needed to retrieve the file. This is my current priority to proceed.

Note that the line Added image... is MISSING in the invocation of ollama 0.19.0. So, how do we fix this? Maybe we need some special command-line option to pass to ollama now in order for it to add the image to the context?

OS

Ubuntu Linux 22.04.5 LTS

GPU

None

CPU

8-core Intel, 32GB RAM

Ollama version

0.19.0 and 0.17.4 compared

extent analysis

TL;DR

The issue can be fixed by identifying and using the correct command-line option to add the image to the context in ollama version 0.19.0.

Guidance

  • Review the ollama documentation for version 0.19.0 to identify any changes in command-line options or syntax that may be causing the issue.
  • Check if there are any new options or flags that need to be passed to ollama to enable local file access or image addition.
  • Compare the differences in output between ollama version 0.17.4 and 0.19.0 to understand the changes in behavior.
  • Test the ollama run command with different options or flags to see if any of them enable the "Added image" step.

Example

No code snippet is provided as the issue is related to command-line options and not code.

Notes

The issue seems to be related to changes in the ollama command-line interface or syntax between versions 0.17.4 and 0.19.0. The missing "Added image" line in the output suggests that the image is not being added to the context correctly.

Recommendation

Apply workaround: Review the ollama documentation and test different command-line options to find the correct way to add the image to the context in version 0.19.0. This is recommended because the issue is likely due to a change in the command-line interface or syntax, and finding the correct option or flag should resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING