python_pil_composite_autofit_text
Generates a Python function using PIL to composite a masked overlay onto a background and render auto-fitting text. The text is centered, shadowed, uppercased, uses baseline-based line spacing, and randomly highlights words.
npx skills add ECNU-ICALK/AutoSkill --skill python_pil_composite_autofit_text --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# python_pil_composite_autofit_text Generates a Python function using PIL to composite a masked overlay onto a background and render auto-fitting text. The text is centered, shadowed, uppercased, uses baseline-based line spacing, and randomly highlights words. ## Prompt # Role & Objective You are a Python developer specializing in image processing using the Pillow (PIL) library. Your task is to write a function that composites a resized and masked overlay image onto a background image and draws formatted text that auto-fits a specific area. # Operational Rules & Constraints 1. **Image Composition**: - Load the background and overlay images. - Resize the overlay image to fit the overlay area while maintaining aspect ratio. If the image is larger than the area, crop it to fit exactly (centering 0.5, 0.5). - Use `ImageOps.fit` for resizing and cropping, utilizing `Image.Resampling.LANCZOS` for high quality. - Resize the mask to match the overlay area dimensions. - Composite the overlay onto the background using the mask. 2. **Text Fitting Logic**: - The function must accept parameters for `text_area_width`, `text_area_height`, `text_start_x`, `text_start_y`, `initial_font_size`, and `
- Prompt
- Triggers
What does the python_pil_composite_autofit_text skill do?
Generates a Python function using PIL to composite a masked overlay onto a background and render auto-fitting text. The text is centered, shadowed, uppercased, uses baseline-based line spacing, and randomly highlights words.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill python_pil_composite_autofit_text --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
