slack-gif-creator

Create animated GIFs optimized for Slack emoji and message requirements using Python.

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/sshekhar-04/SIH_PS_26151 --skill slack-gif-creator-sshekhar-04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slack-gif-creator
Source: https://github.com/sshekhar-04/SIH_PS_26151/tree/main/.agents/Skills/slack-gif-creator
Command: npx skills add https://github.com/sshekhar-04/SIH_PS_26151 --skill slack-gif-creator-sshekhar-04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pillow, imageio, imageio-ffmpeg, numpy.

What problem does it solve? Creating animated GIFs that meet Slack's strict dimension, file size, and color constraints requires manual tuning of frames, palettes, and timing, which is tedious and error-prone. ## Core Features & Use Cases - GIF Assembly and Optimization: The GIFBuilder class assembles PIL frames into GIFs with global palette quantization, duplicate frame removal, and automatic emoji-mode resizing to 128x128. - Validation Tools: Validators check whether a GIF meets Slack's dimension and size requirements for emoji or message use. - Animation Utilities: Easing functions (bounce, elastic, back) and frame helpers (gradients, stars, text) support smooth motion effects like shake, pulse, spin, and particle bursts. - Use Case: A user asks for a bouncing star emoji GIF for Slack; the skill generates 12 frames with PIL primitives, applies ease-out interpolation, and saves an optimized 128x128 GIF under Slack's size limits. ## Quick Start Create a 128x128 animated GIF of a pulsing heart optimized for a Slack emoji.

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 for Slack in Python?

Use the GIFBuilder class to add PIL Image frames, then call save with your desired color count. Set width and height to 128 for emoji or 480 for message GIFs, and use optimize_for_emoji=True for automatic size reduction.

What are the Slack emoji GIF size requirements?

Slack emoji GIFs should be 128x128 pixels with 10-30 FPS and 48-128 colors. Keep duration under 3 seconds and use fewer colors and frames to minimize file size.

How do I reduce GIF file size for Slack?

Lower the FPS, reduce colors to 48 with num_colors, shrink dimensions to 128x128, and enable remove_duplicates=True to drop near-identical frames. The optimize_for_emoji flag applies aggressive optimization automatically.

Can I animate an uploaded image into a GIF?

Yes, load the uploaded image with PIL's Image.open and use it directly as frames or as visual reference for colors and style. You can then rotate, scale, or composite it across frames before saving.

Why does my GIF animation look choppy or linear?

Linear interpolation produces mechanical motion. Use the easing module's interpolate function with options like ease_out, bounce_out, or elastic_out to create natural acceleration and deceleration between frames.