Skip to content
Back to skills

Clean Thumbnail

ASecurity

Makes restrained, editorial YouTube thumbnails from real images, for any kind of video (gaming, trailers, walkthroughs, tech and hardware comparisons, sports, education, vlogs), in the style of publisher and press thumbnails instead of the loud template of glowing text, arrows, stickers and color washes. Use when someone wants a YouTube thumbnail, gives a video title with a screenshot, capture, photo or cut-out, wants a split-screen comparison thumbnail, wants themselves or a product placed i...

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 22, 2026
ai-agentspythongobashapiperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned October 22, 2026

npx -y skills add RZ-Logic/clean-thumbnail-skill --skill clean-thumbnail --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clean Thumbnail?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clean Thumbnail
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rz-logic-clean-thumbnail/badge)](https://www.skillsdirectory.com/skills/rz-logic-clean-thumbnail)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clean-thumbnail
description: Makes restrained, editorial YouTube thumbnails from real images, for any kind of video (gaming, trailers, walkthroughs, tech and hardware comparisons, sports, education, vlogs), in the style of publisher and press thumbnails instead of the loud template of glowing text, arrows, stickers and color washes. Use when someone wants a YouTube thumbnail, gives a video title with a screenshot, capture, photo or cut-out, wants a split-screen comparison thumbnail, wants themselves or a product placed in front of a background, or wants a thumbnail that doesn't look like AI slop or like everyone else's. Also makes Facebook and Instagram feed (4:5) and Reels, Shorts and Stories (9:16) versions, and standalone feed posts that keep the user's whole message. Turns the title into short type in the game's, film's or brand's own lettering and color, renders an A/B pair at up to 4K plus 2 MB phone copies, and checks contrast, the duration-badge corner, the Reels safe zone and feed sizes.
license: MIT for the code; the bundled fonts are SIL OFL 1.1 (fonts/*/OFL.txt); the face model is OpenCV's, under the Intel open-source license in its header (models/haarcascade_frontalface_alt2.xml)
compatibility: Python 3.8+ with numpy and Pillow. Uses its 16 bundled OFL fonts by default (Playfair Display and Outfit for the default title and label), so the same command gives the same type on every OS; --system-fonts opts into installed faces (Bodoni MT, Bahnschrift, Didot), and any font file can be passed in. Optional rembg for removing backgrounds from subject photos.
metadata:
  author: Rizwan Ahmed
  version: "0.9.2"
---

# Clean thumbnail

## The one rule

**Real images carry the mood; the type stays quiet.** Every thumbnail is a small stack of real
images in fixed roles plus two pieces of type. No outlines, glows, arrows, stickers, color washes,
or scenes generated by an image model.

## Image roles

Decide each image's role from what the user says and shows. There are only four:

| Role | Flag | Use for |
|---|---|---|
| Background | the capture (positional) | Almost everything: one frame, photo or key art |
| Panels | `--panel A --panel B` (2-3), `--panel-label` each | Comparisons: versions, settings, before/after |
| Subject | `--subject cutout.png` (repeatable) | A person, character or product in front of the background |
| Inset | `--inset img --inset-box x0,y0,x1,y1` | An image shown inside the background: a game on a monitor, a clip on a phone |

Panels replace the background; subject and inset sit on top of one. Subjects go on the side away
from the type and are matched to the photo behind them; they need a transparent background (the
script uses rembg when installed, else ask for a cut-out). Estimate the inset box, in fractions of
the background, by looking at it.

## Thumbnail or post?

Decide this first; it changes what happens to the user's words.

- **Thumbnail:** the image sits next to a video title (a YouTube video, a Reel or Short cover). The
  title carries the message, so the image gets a few words, picked with the type rules.
- **Post:** the image is the message: a Facebook or Instagram post, an announcement, an event, an
  offer, a hiring post, a promo. Render with `--mode post` and keep the user's words: the core
  message as `--title`, the rest as `--body`, when, where, price and how to act as `--details`
  ([type rules: Posts](references/type-rules.md#posts)). Fix spelling and capitals only. Never cut
  the message or move it into the post's caption unless the user asks; if the script says the text
  won't read at feed size, show the user the cut you would make and wait for a yes. Posts often read
  best with `--backdrop solid` when the photo is busy or the message is long; thumbnails usually
  keep the default `fade`.
- **Unsure?** Ask once: "Is this a video thumbnail or a post image?"

## Workflow

1. **Get the images.** The best background is a raw capture: photo mode, HUD off (and any RTSS or
   Afterburner stats overlay off), 1440p or 4K, subject on one side with room for type on the other.
   **HDR:** the NVIDIA app and Xbox Game Bar save HDR captures as JPEG XR (`.jxr`, sometimes named
   `.jpg`), which the script cannot read and you cannot view; ask for SDR PNG or JPEG exports, or
   captures taken with HDR off. Official press-kit art works; key art often has the subject in the
   middle, which `--subject-box` and `--crop` handle (step 5). Fan art needs the artist's permission
   and credit. Don't generate or repaint scenes with an image model.
2. **Write the text** with [references/type-rules.md](references/type-rules.md). Thumbnail: the big
   type is what makes this video different, the label is context; no kicker unless it is needed.
   If the title names only a topic, ask the user what happened or changed before you write the
   label. Show the user the text and what you dropped from the title. Post: arrange the user's
   message into headline, body and details without dropping words, and show them how you split it.
3. **Pick the title look** with [references/fonts.md](references/fonts.md), in this order: the
   official logo if the user has one (`--logo`; press kits and official sites publish them);
   otherwise the bundled font closest to the game's, film's or brand's own lettering
   (`--title-font cinzel`, see `--list-fonts`); if nothing bundled fits, use the channel's saved
   `title_font`, else the serif or sans default, and say that nothing matched. The label box always
   keeps the channel font. Tell the user which look you used and why; a matched font is
   close in spirit, not the real lettering. Match weight and spacing as well as shape: a thin,
   widely spaced logo gets `--title-font outfit@Light --title-tracking 0.12`. Split long single words over two lines
   (`DAWN\nWALKER`) when the font is wide. With `--logo`, a `--title` is not drawn.
   **Color:** white by default. When the image has one strong signature color (a sunset, neon, an
   eclipse, a team color), use `--title-color auto`: the script takes it from the image and lightens
   it just enough to read (white if the image has no vivid color). Or give a brand color
   (`--title-color "#f2b84b"`). Color the big type *or* the label box (`--accent`), never both in
   different colors.
4. **Thumbnails: check channel settings and formats.** The script loads `clean-thumbnail.json` from
   the **working folder** only; if the file lives elsewhere, pass `--channel PATH` on every run.
   Flags override it. Keys: [references/flags.md](references/flags.md#channel-file).
   - **Formats, asked once.** If there is no saved `aspect` and the request doesn't name a platform,
     ask once which platforms the user posts to: YouTube (`16:9`), Facebook or Instagram feed
     (`4:5`), Reels, Shorts or Stories (`9:16`). Save only the answer, as
     `{"aspect": "16:9,4:5"}` (start from
     [references/channel.example.json](references/channel.example.json)), say where you saved it, and
     don't ask again. Posts ignore this question and the saved `aspect`.
   - **After that,** use the saved formats without asking. A request that names a platform ("for
     Reels", "a Facebook one too") gets `--aspect` for that run only, and `--aspect` replaces the
     saved list: pass every format you want rendered (`--aspect 16:9,4:5,9:16`), or only the new one
     when the others already exist from an earlier run with the same `-o`. Change the saved value only
     when the user says so ("from now on", "always").
   - After the user approves a first thumbnail, offer to save their other choices (style, fonts,
     `title_color` or `accent`) the same way; leave `auto` unsaved unless they ask.
5. **Render** with `scripts/thumb.py` in this skill's folder (use its full path):

   ```bash
   python <skill-dir>/scripts/thumb.py CAPTURE --title "SIMON" --label "No hit · Parry only" -o out/simon
   python <skill-dir>/scripts/thumb.py PHOTO --mode post --title "MAKE YOUR FIRST VIDEO" --body "Learn to frame a shot and record clear sound." --details "Saturday 24 October · 10 AM\nStudio 04 · Free" --backdrop solid -o out/post
   ```

   A thumbnail writes two variants by default, `_A` (title big) and `_B` (label big), each as a master
   `.jpg` at the largest standard size the images support without upscaling (up to 3840x2160), a
   `_phone.jpg` at 1280x720 under 2 MB, and a `_preview.png` (feed sizes with the duration badge,
   88 px notification, squint test). A post writes one image. Formats: `--aspect 16:9` (default),
   `4:5` (feed, 1080x1350), `9:16` (Reels, Shorts, Stories, 1080x1920), a comma list, or `all`. Use
   the same text for every format. The vertical formats put the type in a band, kept inside the
   Reels/Shorts safe zone on 9:16.

   **The shade is automatic.** Without `--shade`, the script darkens the type side as little as it
   can while every element keeps 7:1 contrast, so the picture shows more than it used to. Pass
   `--shade N` only when the user wants a fixed darkness.

   **Mark the subject.** When the capture shows a person, character or product, look at it and pass
   `--subject-box x0,y0,x1,y1` around the face, from the brows to the chin (or around the product's
   label). Type and shade then keep off it, and the warnings name a fix. Not with `--panel` or
   `--subject`. Without a box the script looks for a face itself and only warns, naming the
   `--subject-box` to pass, when the type, its shade or a crop would cover or cut it.

   **Subject in the middle, or a wide frame that doesn't suit 4:5 and 9:16:** use `--crop`, or a
   second capture in a second run with `--aspect 4:5,9:16`
   ([recipes](references/flags.md#recipes)). Every flag (including `--channel`, `--no-trim`,
   `--no-system-fonts`, `--no-logo-white`), post mode details and input formats:
   [references/flags.md](references/flags.md). Each variant prints `title type:` and `colors:`.
6. **Check** before handing back:
   - Read every `warning:` and `note:` line and fix the cause (the table in
     [references/flags.md](references/flags.md#notes-and-warnings) lists each fix). Never hand back a
     thumbnail with an open warning without saying so.
   - Open each preview: the big type must read at 168 px; shorten text that doesn't. A logo that
     fades there may ship only as A beside a B whose hook reads; say so. In the squint tile, the big
     type and the subject should be the two things that survive; if a bright patch outweighs both,
     change the crop, the side or the image.
   - **Look at the capture itself for HUD:** the lighter shade shows more of the frame. Check each
     corner and the bottom edge for HUD, performance overlays (RTSS, Afterburner stats), button
     prompts, objective text and toasts. `--crop` them out or ask for a clean capture; the script
     does not detect them.
   - Read the `subject box:` line of every variant, and open the last preview tile, which outlines
     `--subject-box` (cyan), `--inset-box` (amber) and a face the script warns about (magenta): the box
     must hold the face or screen. If the magenta box holds a face, re-run with the `--subject-box` its
     warning names; if not, pass `--no-face-check`. If the box is shaded or under type on 16:9, re-run
     with the `--crop` the warning suggests instead of shrinking the type. On 9:16 the script can only
     move the band to the top or bottom; if the face is still shaded, shorten the text or use another
     frame, and tell the user if it stays shaded.
   - Without a box, check in the 4:5 and 9:16 previews that the crop kept what matters; if it framed
     scenery, pass `--focus`. The face check finds faces turned toward the camera, not backs of heads.
   - With `auto` color, the `colors:` line and preview should show the color the image is known for;
     if it took a side color (a red sign in a blue scene), give the right hex code or use white.
   - With a subject, check that it looks photographed with the background: no halo, no mismatched
     color or sharpness.
   - With screenshots of current top thumbnails on the topic, pass them with `--feed DIR` and look at
     `_feed.png`: yours should stand out.
7. **Hand back.** A thumbnail: both variants (master and phone copy), the previews, the text used,
   and the title look and colors. For a 16:9 long-form video the pair is for YouTube's Test &
   Compare, which takes up to three thumbnails per video and picks the winner on watch time share,
   not click-through rate; clearly different thumbnails finish faster. It is not available for
   Shorts, Premieres, scheduled lives, made-for-kids or private videos. For 9:16 and 4:5 covers, ship
   one variant (`--lead title` or `--lead label`) or let the user pick by eye. Let the test pick, not
   you, and don't promise a third variant. A post: the image, its preview, and the text exactly as
   placed (the `body:` and `details:` lines under `post text:`, with the sizes); it is one image, not
   an A/B pair.

## Fixed specs

Master up to 3840x2160 with a 1280x720 phone copy under 2 MB; 4:5 and 9:16 get a 1080-wide copy.
Type stays out of the duration-badge corner and inside the frame; on 9:16 it stays inside the
Reels/Shorts safe zone, a conservative preset (clear of the top 14%, bottom 35% and right 15%;
Meta's Reels ad guide suggests 14%, 35% and 6% per side, and neither platform publishes an organic
cover spec). Every element needs WCAG 4.5:1 contrast. More: [flags.md](references/flags.md#fixed-specs).

Files in this skill

  • LICENSE1 KB
  • SKILL.md13.2 KB
  • agents/openai.yaml266 B
  • fonts/bebas/BebasNeue-Regular.ttf60 KB
  • fonts/bebas/OFL.txt4.3 KB
  • fonts/brush/OFL.txt4.4 KB
  • fonts/catalog.json5.2 KB
  • fonts/cinzel/OFL.txt4.3 KB
  • fonts/gothic/OFL.txt4.3 KB
  • fonts/medieval/OFL.txt4.2 KB
  • fonts/nunito/OFL.txt4.3 KB
  • fonts/orbitron/OFL.txt4.3 KB
  • fonts/orbitron/Orbitron-VariableFont_wght.ttf37.7 KB
  • fonts/oswald/OFL.txt4.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.