Skip to content

Add WebP image format support#23

Open
idvorkin-ai-tools wants to merge 1 commit into
simonw:mainfrom
idvorkin-ai-tools:add-webp-support
Open

Add WebP image format support#23
idvorkin-ai-tools wants to merge 1 commit into
simonw:mainfrom
idvorkin-ai-tools:add-webp-support

Conversation

@idvorkin-ai-tools
Copy link
Copy Markdown

@idvorkin-ai-tools idvorkin-ai-tools commented Feb 24, 2026

Summary

  • Add .webp to the validImageExts map in exec/image.go — a one-line fix for the unrecognized image format: .webp error
  • Add TestCopyImageWebP in exec/image_test.go with a real 62-byte 1x1 VP8-encoded WebP image
  • Showboat walkthrough in demos/webp-support.md demonstrating the fix: view on gisthost

Test plan

  • go build ./... succeeds
  • go test ./... — all tests pass, including new TestCopyImageWebP
  • showboat verify demos/webp-support.md passes

🤖 Generated with Claude Code

@idvorkin
Copy link
Copy Markdown

Tracking!

@idvorkin-ai-tools
Copy link
Copy Markdown
Author

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

- If this code review was useful, please react with 👍. Otherwise, react with 👎.

Add ".webp" to the validImageExts allowlist in exec/image.go, fixing
"unrecognized image format: .webp" when using showboat image with WebP
files.

Includes a test with a real 1x1 VP8-encoded WebP and a showboat
walkthrough in demos/ demonstrating the fix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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