← Về thư mục
📄 / / root / GitHub / .agents / workflows / logo-fetch-wf.md

description: "Download brand logos, convert to WebP or SVG format, and optionally grayscale them on request."

Logo Fetch Workflow (/logo-fetch)

This workflow fetches brand logos, processes raster formats into optimized WebP, and optionally converts them to transparent grayscale upon specific user request.

🛠️ Execution Steps

1. Logo Discovery & Download

Run the standardized Python script to download the logo and convert it to WebP (or copy as SVG if it is a vector format):

.venv/bin/python3 .agents/skills/logo-processor/scripts/process_logo.py --domain <company_domain>

By default, the logo is saved under Projects/nhi-nhi-vo-blog/public/images/brands/ with the domain prefix.

2. Skip Grayscale by Default

3. Optional Grayscale Conversion

If the user requests a grayscale version of the image after the initial fetch and conversion finishes, execute the script again with the --grayscale flag:

.venv/bin/python3 .agents/skills/logo-processor/scripts/process_logo.py --domain <company_domain> --grayscale

This converts the WebP/PNG image into a luminance-plus-alpha ("LA" mode) grayscale image to preserve any background transparency.