This workflow fetches brand logos, processes raster formats into optimized WebP, and optionally converts them to transparent grayscale upon specific user request.
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.
--grayscale flag during the initial download/convert step.brightness-0 opacity-40).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.