slack-gif-creator

Create animated GIFs with PIL optimized for Slack dimensions and constraints.

Updated May 21, 2026
One-click install
npx skills add https://github.com/Ber-tx/tongue --skill slack-gif-creator-ber-tx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slack-gif-creator
Source: https://github.com/Ber-tx/tongue/tree/main/.github/skills-main/skills/slack-gif-creator
Command: npx skills add https://github.com/Ber-tx/tongue --skill slack-gif-creator-ber-tx

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of creating and optimizing animated GIFs for Slack, addressing the specific dimensions and performance requirements of the platform.

Core Features & Use Cases

  • Animation Creation: Offers tools for creating animated GIFs using Python with the PIL library.
  • Optimization: Provides constraints and validation tools to ensure GIFs meet Slack's requirements for size, frame rate, and color palette.
  • Use Case: When a user requests a custom animated GIF for Slack, this Skill can be used to generate and optimize the GIF, ensuring it displays correctly within Slack channels.

Quick Start

Generate a Slack-optimized GIF with 10 frames per second and a 128x128 resolution by running the following script:

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

builder = GIFBuilder(width=128, height=128, fps=10)
# Add frames here
builder.save('output.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 an animated GIF optimized for Slack?

To create an animated GIF optimized for Slack, programmatically generate frames using PIL and configure constraints for emoji dimensions. The GIFBuilder ensures compliance with Slack's specific size, frame rate, and color palette requirements.

How do I optimize GIF size and color palette for Slack channels?

Optimize GIF size and color palette for Slack by limiting colors to 48 and using optimization flags. This approach reduces file size while ensuring the animation displays correctly within Slack channel constraints.

Does creating animated GIFs with Python require specific libraries?

Creating animated GIFs with Python requires specific libraries including Pillow, ImageIO, and NumPy. These dependencies handle frame generation, animation assembly, and image processing for the final output.

Can I use PIL to generate Slack emoji GIF dimensions directly?

Yes, you can use PIL to generate Slack emoji GIF dimensions directly by setting a 128x128 resolution. The GIFBuilder validates these constraints to ensure your animated GIF meets Slack's platform specifications.

What is the best way to control frame rate when building an animated GIF in Python?

The best way to control frame rate when building an animated GIF in Python is configuring the FPS parameter in the GIFBuilder. Setting 10 frames per second ensures smooth playback while adhering to Slack's performance constraints.

Why does my animated GIF fail to display properly in Slack?

An animated GIF may fail to display properly in Slack if it exceeds specific size limits or uses an unsupported color palette. Validating dimensions and reducing colors to 48 ensures compliance with Slack's constraints.