← Files Wiv AirARCHIVED FILE

assets/README.md

1.56 KB · Nov 30, 2026 · 07:53 UTC

↓ Download file

# Plugin assets

| File | Use |
|------|-----|
| `logo.png` / `logo-dark.png` | Directory listing logo (512×512, official mark) |
| `icon.png` / `icon-dark.png` | Composer icon (256×256) |
| `wiv-logo-source.svg` | Official Wiv mark (source; not packed into the ZIP) |

PNGs are rendered from `wiv-logo-source.svg` onto a square canvas (white for light, slate `#0F172A` for dark) with padding so the wide mark fits OpenAI’s square logo requirement (≥256px).

Regenerate after updating the SVG (needs `cairosvg` + `Pillow`):

```bash
cd ai/mcp/openai-plugin/assets
python3 - <<'PY'
from pathlib import Path
from io import BytesIO
import cairosvg
from PIL import Image

assets = Path('.')
logo = Image.open(BytesIO(cairosvg.svg2png(url='wiv-logo-source.svg', output_width=1600))).convert('RGBA')

def square(fg, bg, size, pad=0.14):
    canvas = Image.new('RGBA', (size, size), bg + (255,))
    max_w = int(size * (1 - 2 * pad))
    max_h = int(size * (1 - 2 * pad))
    scale = min(max_w / fg.width, max_h / fg.height)
    resized = fg.resize(
        (max(1, int(fg.width * scale)), max(1, int(fg.height * scale))),
        Image.Resampling.LANCZOS,
    )
    canvas.alpha_composite(resized, ((size - resized.width) // 2, (size - resized.height) // 2))
    return canvas.convert('RGB')

square(logo, (255, 255, 255), 512).save('logo.png')
square(logo, (15, 23, 42), 512).save('logo-dark.png')
Image.open('logo.png').resize((256, 256), Image.Resampling.LANCZOS).save('icon.png')
Image.open('logo-dark.png').resize((256, 256), Image.Resampling.LANCZOS).save('icon-dark.png')
print('ok')
PY
```

SHA-256: fea4b43af66b02ea68cde1c2e1cc8c8f3de374e5ea7a4078d16186e35dd857d7