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)