Skip to content

OpenCode refuses to read ".PNG" images. Works when the extension is lowercase ".png". Error says "cannot read binary file.." #10916

@raymelon

Description

@raymelon

Description

Hi. So OpenCode refuses to read ".PNG" images. Works when the extension is lowercase ".png". Error says "cannot read binary file.."

I wonder if it's designed like this. However, it looks odd that images with uppercase extensions are not read.

Plugins

No response

OpenCode version

1.1.27

Steps to reproduce

  1. Reference a ".PNG" image (make sure the extension is in ALL CAPS)
  2. Wait for OpenCode to say "cannot read binary file..." error
  3. Change the image extension to lowercase ".png"
  4. Retry referencing it and watch it read it without issues

Screenshot and/or share link

No response

Operating System

Windows 10

Terminal

Warp

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions