---
title: "How to add a sale badge with Claude (tested prompt and script)"
description: "A round red \"30% off\" sticker pops onto the top-right corner, tilted slightly. Install one skill and ask Claude Code, or run the Python script we tested yourself."
url: https://www.recharm.com/effects/sale-badge
---

# How to add a sale badge with Claude

A round red "30% off" sticker pops onto the top-right corner, tilted slightly.

Made by the script on this page, from our own test clip.

## Get this effect

1. ### Switch to Code in your [Claude Desktop App](https://claude.com/download)

2. ### Install the skill (once)

   ```
   Install the Recharm video effects skill: download https://recharm-growth-staging.s3.us-east-2.amazonaws.com/website/downloads/recharm-video-effects.zip and unzip it into ~/.claude/skills
   ```

3. ### Ask for the effect

   ```
   Add a sale badge to input.mp4
   Top line, bottom line: 30%, OFF
   ```

## Several videos, several effects, one ask

Put your clips in the folder, mention them with @, and ask for everything at once. Claude runs one tested script after another on each clip, then joins them.

Add a sale badge to **@clip1.mp4**, put a VHS look on **@clip2.mp4**, give **@clip3.mp4** boxed captions, then join all three with crossfades.

## Settings you can change

Ask Claude to change any of these, or edit them at the top of the script.

| Setting                 | Default         | What it does                |
| ----------------------- | --------------- | --------------------------- |
| `TOP_LINE, BOTTOM_LINE` | `30%, OFF`      | The two lines on the badge. |
| `START`                 | `0.5`           | Second the badge pops in.   |
| `COLOR`                 | `(230, 30, 45)` | Badge color.                |
| `TILT`                  | `-10`           | Rotation in degrees.        |

## In other editors

From each editor’s own help pages, in our words. We haven’t run these ourselves.

Built in: **Sale stickers**

1. Open a project and click Stickers in the top-left toolbar.
2. Choose the Sale category and pick a sticker.
3. Select it on the timeline and set size and position in the right toolbar.
4. Optionally animate the sticker.

Source: [Top 6 Sale Sticker Downloaders to Enhance Your Holiday Shopping Sales](https://www.capcut.com/resource/sale-sticker) (CapCut), checked October 22, 2026.

## Without the skill

Don’t want to install the skill? Paste this prompt into Claude Code and Claude writes the script itself.

```
Add a sale badge to input.mp4: a red (230, 30, 45) circle 30% of the frame width across, with "30%" over "OFF" in white and a thin white ring inside, tilted -10 degrees, centered at 78% across and 14% down. It pops in at 0.5 seconds over 0.35 seconds with a slight overshoot, then stays. Use Python with Pillow to draw it and ffmpeg to put it on the video (don't rely on ffmpeg's drawtext filter), keep the audio, and save it as output.mp4.
```

## Run it without Claude

This is the exact script we tested. Save it as `sale-badge.py` and run:

```
python3 sale-badge.py input.mp4 output.mp4
```

```
#!/usr/bin/env python3
"""Sale badge: a round red "30% OFF" sticker pops onto the top-right corner, tilted slightly.

Usage: python3 sale-badge.py input.mp4 output.mp4
Needs ffmpeg and Pillow (pip install pillow).
"""
import json
import math
import subprocess
import sys
from pathlib import Path

from PIL import Image, ImageDraw, ImageFont

TOP_LINE, BOTTOM_LINE = "30%", "OFF"
START = 0.5              # second the badge pops in
POP = 0.35               # seconds the pop takes
SIZE = 0.30              # badge width as a share of the frame width
X, Y = 0.78, 0.14        # badge center (0-1 across and down the frame)
COLOR = (230, 30, 45)    # badge color
TILT = -10               # degrees
FONTS = ["/System/Library/Fonts/Supplemental/Arial Bold.ttf",     # macOS
         "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf",  # Linux
         "C:/Windows/Fonts/arialbd.ttf"]                          # Windows
FONT_FILE = next((f for f in FONTS if Path(f).exists()), None) or sys.exit("No bold font found: add one to FONTS")

def sticker():
    d = round(w * SIZE)
    img = Image.new("RGBA", (d, d))
    draw = ImageDraw.Draw(img)
    draw.ellipse([0, 0, d - 1, d - 1], fill=COLOR)
    draw.ellipse([d * 0.06, d * 0.06, d * 0.94, d * 0.94], outline="white", width=max(2, d // 60))
    draw.text((d / 2, d * 0.43), TOP_LINE, font=ImageFont.truetype(FONT_FILE, round(d * 0.30)), anchor="mm", fill="white")
    draw.text((d / 2, d * 0.70), BOTTOM_LINE, font=ImageFont.truetype(FONT_FILE, round(d * 0.17)), anchor="mm", fill="white")
    return img.rotate(TILT, resample=Image.BICUBIC, expand=True)

def overlay(t):
    img = Image.new("RGBA", (w, h))
    scale = ease_out_back((t - START) / POP) if t >= START else 0
    if scale > 0.02:
        b = full.resize((max(1, round(full.width * scale)), max(1, round(full.height * scale))), Image.LANCZOS)
        img.alpha_composite(b, (round(w * X - b.width / 2), round(h * Y - b.height / 2)))
    return img

def ease_out_back(p):
    """0 -> 1 with a small overshoot past 1 before settling, which reads as a 'pop'."""
    p = min(max(p, 0), 1)
    return 1 + 2.70158 * (p - 1) ** 3 + 1.70158 * (p - 1) ** 2

def probe(path):
    info = json.loads(subprocess.check_output(["ffprobe", "-v", "error", "-select_streams", "v:0", "-show_entries",
                                               "stream=width,height,r_frame_rate:format=duration", "-of", "json", path]))
    s = info["streams"][0]
    num, den = s["r_frame_rate"].split("/")
    return s["width"], s["height"], s["r_frame_rate"], float(num) / float(den), float(info["format"]["duration"])

def render(src, out):
    """Draw overlay(t) on every frame of src and save to out, keeping the audio."""
    ff = subprocess.Popen(["ffmpeg", "-y", "-v", "error", "-i", src,
                           "-f", "rawvideo", "-pix_fmt", "rgba", "-s", f"{w}x{h}", "-r", rate, "-i", "-",
                           "-filter_complex", "[0:v][1:v]overlay=shortest=1,format=yuv420p[v]",
                           "-map", "[v]", "-map", "0:a?", "-c:v", "libx264", "-crf", "18", "-c:a", "copy", out],
                          stdin=subprocess.PIPE)
    for i in range(math.ceil(duration * fps)):
        ff.stdin.write(overlay(i / fps).tobytes())
    ff.stdin.close()
    if ff.wait():
        sys.exit("ffmpeg failed")

src, out = sys.argv[1:3]
w, h, rate, fps, duration = probe(src)
full = sticker()
render(src, out)
```

## More product shots

- [Animated feature callouts **Animated feature callouts**](https://www.recharm.com/effects/animated-feature-callouts)
- [Before/after slider **Before/after slider**](https://www.recharm.com/effects/before-after-slider)
- [Best seller badge **Best seller badge**](https://www.recharm.com/effects/best-seller-badge)
- [Callout arrows and circles **Callout arrows and circles**](https://www.recharm.com/effects/callout-arrows-and-circles)
- [Carousel swipe **Carousel swipe**](https://www.recharm.com/effects/carousel-swipe)

## Find 3x _winning ads_

Recharm cuts your ad footage into tagged, searchable clips: hooks, testimonials, product shots. Find the shots that win, add the effect with Claude, and ship 3x more ad edits.

[Start 14-day free trial](https://www.recharm.com/get-started)
