slack-gif-creator

Generate and optimize animated GIFs for Slack using PIL and imageio.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/ErrDivine/LiteCode --skill slack-gif-creator-errdivine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slack-gif-creator
Source: https://github.com/ErrDivine/LiteCode/tree/main/skills/system/anthropic/slack-gif-creator
Command: npx skills add https://github.com/ErrDivine/LiteCode --skill slack-gif-creator-errdivine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pillow, imageio, numpy, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the creation of animated GIFs tailored for Slack, offering an easy solution for users who need custom animated content.

Core Features & Use Cases

  • Slack-Optimized GIFs: Generates GIFs specifically formatted for use in Slack with ideal dimensions and file size.
  • Custom Animation Creation: Users can create animations from scratch using provided utilities and PIL primitives.
  • Animation Workflow: Guides users through the process of creating an animation from generating frames to optimizing for Slack.

Quick Start

Run the following script to create an animated GIF with a simple animation of a moving circle.

from core.gif_builder import GIFBuilder
from PIL import Image, ImageDraw

builder = GIFBuilder(width=128, height=128, fps=10)
frame = Image.new('RGB', (128, 128), (255, 255, 255))
draw = ImageDraw.Draw(frame)
draw.ellipse([40, 40, 88, 88], fill=(0, 0, 255), outline=(0, 0, 255), width=3)

for i in range(100):
    draw.ellipse([40 + i, 40, 88 + i, 88], fill=(0, 0, 255), outline=(0, 0, 255), width=3)
    builder.add_frame(frame)
builder.save('move_circle.gif', num_colors=48, optimize_for_emoji=True)

Frequently Asked Questions about slack-gif-creator

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

FAQPage Schema
How do I create animated GIFs optimized for Slack?

To create animated GIFs optimized for Slack, use the GIFBuilder utility to generate frames with PIL primitives, then save with Slack-specific emoji dimensions and file size constraints. The workflow automates frame assembly and color optimization for chat display.

What dimensions should animated GIFs be for Slack emojis?

Animated GIFs for Slack emojis should use small dimensions like 128x128 pixels. The GIFBuilder allows setting exact width and height, ensuring the animation fits Slack's display requirements without manual resizing or cropping.

How do I generate GIF animations from scratch using Python?

To generate GIF animations from scratch using Python, instantiate the GIFBuilder, draw shapes on PIL Image frames using ImageDraw, add each frame to the builder, and export the sequence. This process automates custom animation creation without pre-existing video files.

Do I need Python and imageio to automate Slack GIF creation?

Yes, you need Python with imageio, Pillow, and numpy dependencies to automate Slack GIF creation. These libraries handle image processing, frame sequencing, and array manipulation required to build and optimize the animated output.

How can I optimize GIF file size and colors for chat platforms?

Optimize GIF file size and colors for chat platforms by using the builder's save parameters, specifically setting `num_colors` to a lower value like 48 and enabling `optimize_for_emoji`. This reduces the palette while maintaining animation quality.