post-process-logo
Standardise logos to 256x256 PNG format.
Install
mkdir -p .claude/skills/post-process-logo && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3414" && unzip -o skill.zip -d .claude/skills/post-process-logo && rm skill.zipInstalls to .claude/skills/post-process-logo
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Post-process original logos into standardised 256x256 PNG formatKey capabilities
- →Standardizes logo dimensions to 256x256
- →Identifies logo variants from filenames
- →Applies automated padding to correct aspect ratios
- →Categorizes brand marks versus word marks
How it works
It uses Python image processing libraries to detect dimensions, identify transparency, and programmatically resize/pad images to a target format.
Inputs & outputs
When to use post-process-logo
- →Format raw logos for metadata
- →Standardize light and dark mode assets
- →Process bulk brand marks for vault protocols
About this skill
Post-process logo
This skill transforms original logo images into standardised 256x256 PNG format suitable for vault protocol metadata. It automatically selects the most square variant from available logos and applies padding if needed to create a perfect square output.
Required inputs
Before starting, gather the following from the user:
- Input folder - Folder containing original logo files (e.g.,
eth_defi/data/vaults/original_logos/protocol-name/) - Output folder - Folder where processed logos should be saved (e.g.,
eth_defi/data/vaults/formatted_logos/) - Variant preference (optional) - Which variant(s) to process:
generic,light,dark, orall
If any required input is missing, ask the user before proceeding.
Prerequisites
Ensure the following are available:
- Python dependencies installed:
poetry install --with dev
Python Pillow is installed for detecting image format, dimensions, and transparency.
Logo vocabulary
There is no universal standard how artist name their logo files for dark and light variants. In our case, we always say
light: light (white) text on dark or transparent backgrounddark: dark (black) text on white or transparent background
Following vocabulary is used:
- Brand mark: same as logo mark, the logo without the brand name text
- Word mark: the logo with the brand name text
Step 1: Inventory input logos
List all image files in the input folder and classify them:
- Identify file formats: SVG, PNG, JPG, WEBP, etc.
- Classify by variant based on filename:
{slug}.generic.{ext}- Generic/default theme{slug}.light.{ext}- Light background theme (dark logo){slug}.dark.{ext}- Dark background theme (light logo)
- Always prefer brand marks over word marks as source logo for post processing
- Check aspect ratio of each logo:
- Square aspect ratio: Width equals height (1:1 ratio). Allow 90% tolerance in the detection as there might be one-off pixel errors in the source material.
- Non-square: Width differs from height - will need padding to become square
- Check if logos have transparent backgrounds:
- Transparent background: PNG files with alpha channel transparency
- Assume SVGs are always transparent: SVG files the originals should never contain a solid background
- Report findings to user, noting aspect ratios for each variant
Step 2: Variant selection
Automatic selection priority
- Pick the most square variant: Calculate aspect ratio (min dimension / max dimension) for each variant and select the one closest to 1.0
- If multiple variants have the same squareness:
- Prefer transparent variants (PNG with alpha, SVG)
- If still tied, prefer generic > light > dark
- If user specified a variant preference: Use that variant regardless of squareness
Step 3: Process logo
Process the selected logo variant. The script will automatically add padding to non-square logos to make them square before scaling.
export INPUT_IMAGE=/path/to/original/logo.png
export OUTPUT_IMAGE=/path/to/output/logo.generic.png
poetry run python scripts/logos/post-process-logo.py
The script will:
- Convert SVG to PNG if needed
- Add transparent padding to make the logo square (if non-square)
- Remove background if not already transparent
- Recolour for dark background (invert colours if logo is too dark to be visible on dark backgrounds)
- Trim any excess padding and scale to 256x256
Step 4: Report results
Provide the user with:
- Processed files - List of all output files created
- File details - Dimensions, file size for each
- Any issues - Note any logos that couldn't be processed or had quality issues
Output naming convention
Output files should follow this naming pattern:
{protocol-slug}/light.png- For light backgrounds{protocol-slug}/dark.png- For dark backgrounds
Troubleshooting
SVG conversion issues
If SVG conversion fails:
- Check if the SVG file is valid XML
- Some complex SVGs may not render correctly
- Try opening in a browser to verify the SVG displays properly
Background removal issues
If the background isn't removed properly:
- The logo may have complex edges or gradients
- Try providing a higher resolution input
- For logos that already have transparency, the script will skip background removal
When not to use it
- →Logos requiring artistic cropping or manual vector editing
- →Processing images without clear square-variant potential
Prerequisites
Limitations
- →Does not improve source image resolution
- →May require manual review for complex multi-color logos
How it compares
It enforces strict filename-based classification and padding rules instead of relying on manual image editing tools.
Compared to similar skills
post-process-logo side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| post-process-logo (this skill) | 1 | 7mo | Review | Beginner |
| slack-gif-creator | 6 | 3mo | Review | Intermediate |
| gemini-logo-remover | 9 | 8mo | Review | Beginner |
| nano-image-generator | 1 | 6mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by tradingstrategy-ai
View all by tradingstrategy-ai →You might also like
slack-gif-creator
anthropics
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."
gemini-logo-remover
bear2u
Remove Gemini logos, watermarks, or AI-generated image markers using OpenCV inpainting. Use this skill when the user asks to remove Gemini logo, AI watermark, or any logo/watermark from images.
nano-image-generator
solidSpoon
Generate images using Nano Banana Pro (Gemini 3 Pro Preview). Use when creating app icons, logos, UI graphics, marketing banners, social media images, illustrations, diagrams, or any visual assets. Triggers include phrases like 'generate an image', 'create a graphic', 'make an icon', 'design a logo', 'create a banner', or any request needing visual content.
image-crop-rotate
instavm
Image processing skill for cropping images to 50% from center and rotating them 90 degrees clockwise. This skill should be used when users request image cropping to center, image rotation, or both operations combined on image files.
sora
davila7
Use when the user asks to generate, remix, poll, list, download, or delete Sora videos via OpenAI’s video API using the bundled CLI (`scripts/sora.py`), including requests like “generate AI video,” “Sora,” “video remix,” “download video/thumbnail/spritesheet,” and batch video generation; requires `OPENAI_API_KEY` and Sora API access.
compress_image
CoderWanFeng
压缩图片文件大小,通过调整质量参数控制输出体积。当用户提到压缩图片、图片减肥、缩小图片体积、降低图片质量时使用。