What problem does it solves?
Creating engaging, optimized GIFs for Slack that meet strict size and dimension requirements can be complex and time-consuming. This skill provides a powerful toolkit to generate custom animated GIFs and emojis, ensuring they are always Slack-ready.
Core Features & Use Cases
- Slack-Optimized GIF Creation: Generate animated GIFs and emojis that automatically adhere to Slack's size and dimension constraints.
- Composable Animation Primitives: Utilize a rich set of building blocks like shake, bounce, spin, pulse, fade, zoom, and more to create dynamic animations.
- Built-in Validators: Automatically check GIFs against Slack's specific requirements for messages (up to 2MB) and emojis (strict 64KB).
- Use Case: A user wants a custom "celebration" emoji for a team announcement. This skill can create a small, vibrant, bouncing emoji GIF that fits Slack's strict 64KB limit, ready for immediate upload.
Quick Start
from core.gif_builder import GIFBuilder
from core.frame_composer import create_blank_frame, draw_emoji_enhanced
import math
builder = GIFBuilder(128, 128, 10)
for i in range(12):
frame = create_blank_frame(128, 128, (240, 248, 255))
scale = 1.0 + math.sin(i * 0.5) * 0.15
size = int(60 * scale)
draw_emoji_enhanced(frame, '😱', position=(64-size//2, 64-size//2),
size=size, shadow=False)
builder.add_frame(frame)
builder.save('reaction.gif', num_colors=40, optimize_for_emoji=True)