Skip to content

feat: add GIF preview support using chafa#121

Closed
majiayu000 wants to merge 1 commit intomistakenelf:mainfrom
majiayu000:fix-88-previewing-gif-1231-0721
Closed

feat: add GIF preview support using chafa#121
majiayu000 wants to merge 1 commit intomistakenelf:mainfrom
majiayu000:fix-88-previewing-gif-1231-0721

Conversation

@majiayu000
Copy link
Copy Markdown

Fixes #88

Changes

  • Add convertWithChafa function to render GIF images using chafa CLI tool
  • Add isGif helper function for GIF extension detection
  • Update image extension handling to include .gif

Add support for previewing GIF files in the file manager using the
chafa external tool. This enables rendering GIF images as terminal-
compatible symbols/ASCII art.

Changes:
- Add .gif extension to supported image types in commands.go
- Implement convertWithChafa() function in image module to use chafa
  for converting GIF images to displayable string output
- Add isGif() helper to detect GIF files by extension

Closes mistakenelf#88

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
@majiayu000
Copy link
Copy Markdown
Author

Closing this PR due to extended inactivity. Happy to reopen if there's still interest — feel free to comment.

@majiayu000 majiayu000 closed this Mar 20, 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.

Previewing gif

1 participant