Skip to content

feat: image preview for binary files#208

Merged
Dimillian merged 2 commits intoDimillian:mainfrom
shaw-baobao:fix/image-preview-binary
Jan 23, 2026
Merged

feat: image preview for binary files#208
Dimillian merged 2 commits intoDimillian:mainfrom
shaw-baobao:fix/image-preview-binary

Conversation

@shaw-baobao
Copy link
Copy Markdown
Contributor

@shaw-baobao shaw-baobao commented Jan 23, 2026

Summary

  • Skip UTF-8 decoding for image previews and use convertFileSrc
  • Add a dedicated image preview layout in the file preview popover
  • Expand the list of recognized image file extensions

Comparison

Image asset preview (works as expected)

Screenshot 2026-01-23 at 4 51 56 PM

App icon file preview (fails with UTF-8 decoding)

File is not valid UTF-8

This change ensures binary image files are always rendered using the image preview path instead of attempting UTF-8 decoding.

Testing

  • Manual verification

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Dimillian
Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Dimillian Dimillian changed the title Fix image preview for binary files feat: image preview for binary files Jan 23, 2026
@Dimillian Dimillian merged commit c3b1458 into Dimillian:main Jan 23, 2026
4 checks passed
siddartha-10 pushed a commit to siddartha-10/ClaudeCodeMonitor that referenced this pull request Jan 23, 2026
gersmann pushed a commit to gersmann/codex-monitor-web that referenced this pull request Mar 10, 2026
zip700 pushed a commit to zip700/CodexMonitor that referenced this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants