tiktok-overlay_skill

This skill adds TikTok-style text overlays to images and videos with styled fonts, backgrounds, strokes, and timed animations.
  • Python

2.5k

GitHub Stars

5

Bundled Files

2 months ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill tiktok-overlay

  • _meta.json287 B
  • README.md9.0 KB
  • SKILL.md9.4 KB
  • tiktok_overlay.py20.5 KB
  • tiktok_video_overlay.py7.4 KB

Overview

This skill adds TikTok-style text overlays to images and videos with styled fonts, backgrounds, strokes, and timed animations. It provides both an image engine and a video engine so you can produce single-shot overlays or time-synced animated captions. The API accepts flexible input/output types and supports many styling options to reproduce the TikTok look quickly.

How this skill works

The image engine draws text on a target image using configurable styles, background shapes, strokes, opacity, and positioning. The video engine composes text clips over video with per-text timing, fade in/out, and the same styling primitives, then renders with moviepy. Both engines accept file paths, PIL Images, numpy arrays, or raw bytes and return either saved files or PIL objects.

When to use it

  • Add bold, outlined captions to photos for social posts.
  • Create timed captions, callouts, or animated labels on short videos.
  • Batch-process images with consistent branded text overlays.
  • Prototype TikTok-like caption styles for app UI or demos.
  • Generate thumbnails with readable, styled titles.

Best practices

  • Use stroke_width 4–6 with bg_style="none" for the classic TikTok outlined look.
  • Use bg_style="highlight" and bg_opacity around 0.6 for per-line rounded highlights that improve readability.
  • Set max_width_ratio (e.g. 0.85) to ensure automatic word wrapping fits various aspect ratios.
  • Provide explicit positions (e.g. "top-left" or (x,y)) to avoid overlaps with important image content.
  • For videos, stagger t_start/t_end and set small fade_in/fade_out (0.3–0.6s) for smooth transitions.

Example use cases

  • Create an eye-catching IG/TikTok thumbnail with bold outlined text and a highlight background.
  • Add timed promotional text, lower-thirds, or scene callouts to short video clips.
  • Batch-generate product images with consistent captions and brand colors.
  • Produce tutorial clips with step captions that fade in and out at specific timestamps.

FAQ

Yes. Install Pillow for images and moviepy for video support (pip3 install Pillow moviepy).

What input types are accepted?

Paths, PIL Image objects, numpy arrays, or raw image bytes are all supported for input. Output can be saved to a path or returned as a PIL Image.

How do I get the classic TikTok outlined text?

Use bg_style="none" with stroke_width around 4–6 and a contrasting stroke_color (usually black).

Can I control timing for video text?

Yes. Use t_start and t_end for each VideoTextOverlay and fade_in/fade_out to animate appearance and disappearance.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
tiktok-overlay skill by openclaw/skills | VeilStrat