slack-gif-creator

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

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/pchemguy/AISandbox --skill slack-gif-creator-pchemguy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: slack-gif-creator
Source: https://github.com/pchemguy/AISandbox/tree/main/docs/AgentSkills/anthropics/skills/skills/slack-gif-creator
Command: npx skills add https://github.com/pchemguy/AISandbox --skill slack-gif-creator-pchemguy

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 trial and error with image tools, and this Skill provides the constraints, utilities, and validation needed to produce compliant GIFs programmatically. ## Core Features & Use Cases - GIF Assembly and Optimization: GIFBuilder combines PIL-generated frames into GIFs with color quantization, duplicate frame removal, and automatic 128x128 emoji resizing. - Slack Compliance Validation: Validators check dimensions, file size, frame count, and duration against Slack emoji (128x128) and message (480x480) requirements. - Animation Utilities: Easing functions (bounce, elastic, back), frame composers (gradients, stars, text), and documented motion concepts like shake, pulse, spin, and particle bursts. - Use Case: A user asks for a bouncing star emoji for their Slack workspace; the Skill guides frame generation with PIL, applies bounce easing, optimizes to 48 colors at 128x128, and validates the output before delivery. ## Quick Start Create an animated Slack emoji GIF of a pulsing heart at 128x128 pixels and validate it meets Slack's requirements.

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 and emoji optimization. Generate frames with PIL ImageDraw primitives like ellipses, polygons, and lines, applying easing functions for smooth motion.

What size should a Slack emoji GIF be?▼

Slack emoji GIFs should be 128x128 pixels, kept under 3 seconds, with 10-30 FPS and 48-128 colors for smaller file sizes. Message GIFs can be larger at 480x480 pixels.

How do I reduce GIF file size for Slack?▼

Lower the FPS to 10, reduce colors to 48 with num_colors, use 128x128 dimensions, enable remove_duplicates to drop near-identical frames, and set optimize_for_emoji=True for automatic aggressive optimization.

Can I animate an image a user uploads into a GIF?▼

Yes, load the uploaded image with PIL Image.open and either animate it directly or use it as visual reference for colors and style. The Skill does not include pre-packaged graphics, so all drawing uses PIL primitives.

Why does my Slack GIF look choppy or amateurish?▼

Thin lines at width=1 render poorly, so use width=2 or higher for outlines. Add gradients, layered shapes, highlights, and vibrant contrasting colors, and apply easing functions instead of linear motion for smoother animation.