What problem does it solve?
This Skill streamlines the creation of animated GIFs tailored for Slack, offering an easy solution for users who need custom animated content.
Core Features & Use Cases
- Slack-Optimized GIFs: Generates GIFs specifically formatted for use in Slack with ideal dimensions and file size.
- Custom Animation Creation: Users can create animations from scratch using provided utilities and PIL primitives.
- Animation Workflow: Guides users through the process of creating an animation from generating frames to optimizing for Slack.
Quick Start
Run the following script to create an animated GIF with a simple animation of a moving circle.
from core.gif_builder import GIFBuilder
from PIL import Image, ImageDraw
builder = GIFBuilder(width=128, height=128, fps=10)
frame = Image.new('RGB', (128, 128), (255, 255, 255))
draw = ImageDraw.Draw(frame)
draw.ellipse([40, 40, 88, 88], fill=(0, 0, 255), outline=(0, 0, 255), width=3)
for i in range(100):
draw.ellipse([40 + i, 40, 88 + i, 88], fill=(0, 0, 255), outline=(0, 0, 255), width=3)
builder.add_frame(frame)
builder.save('move_circle.gif', num_colors=48, optimize_for_emoji=True)