kitty-gif-renderer

Render animated GIFs inline in terminal panels via the Kitty graphics protocol.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/dotBeeps/hoard --skill kitty-gif-renderer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kitty-gif-renderer
Source: https://github.com/dotBeeps/hoard/tree/main/morsels/skills/kitty-gif-renderer
Command: npx skills add https://github.com/dotBeeps/hoard --skill kitty-gif-renderer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many terminal-based panel extensions cannot display animated images inline, leading to bland UI and manual workarounds; this Skill provides a simple, optional integration for rendering animated GIFs in terminal UIs using the Kitty graphics protocol and ensures panels degrade gracefully when image support is absent.

Core Features & Use Cases

  • Kitty protocol rendering: Render animated GIF frames into terminal virtual placements for inline display in panels.
  • Asynchronous loading and lifecycle: Load images with onReady callbacks, guard against stale references, and explicitly dispose to free terminal memory.
  • Float merging for text flow: Create mergers that let text flow alongside a right- or left-floating image and flush remaining image rows after content ends.
  • Graceful degradation and best practices: Check for the global Symbol-based API before use, avoid direct imports, and follow disposal patterns to prevent leaks.
  • Use Case: Add an animated mascot or inline GIF to a floating panel in a Pi extension while preserving readable text flow and terminal stability.

Quick Start

Render the attached animated GIF at 24 columns by 12 rows in the panel and flow text alongside it using the kitty-gif-renderer API.

Frequently Asked Questions about kitty-gif-renderer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I display animated GIFs inline in terminal panels?

To display animated GIFs inline in terminal panels, use the Kitty graphics protocol to render image frames into virtual placements. This enables panels to show animated images directly alongside text in the terminal interface.

Does animated image rendering work if my terminal does not support the Kitty graphics protocol?

Animated image rendering degrades gracefully when the Kitty graphics protocol is not available. You should check for the global Symbol-based API before use to ensure your terminal UI remains stable without image support.

How do I flow text alongside a floating image in a terminal UI?

To flow text alongside a floating image in a terminal UI, create float mergers that let text wrap around right- or left-floating images. You then flush remaining image rows after the content ends to maintain layout.

What is the best way to manage terminal memory when rendering animated GIFs?

The best way to manage terminal memory when rendering animated GIFs is to use explicit dispose semantics. This frees terminal memory by cleaning up stale references after the image is no longer needed.

Can I load animated images asynchronously in terminal panel extensions?

Yes, you can load animated images asynchronously in terminal panel extensions using onReady callbacks. This guards against stale references and ensures the panel updates only when the image data is fully loaded.