aboutsummaryrefslogtreecommitdiffhomepage
path: root/logos/raster/README.md
blob: 186baacdf235a2913ed6c12fdbf1e471ef7486b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Raster logo exports

Every approved SVG in the parent `logos/` directory is exported as lossless PNG and WebP on square transparent canvases at 16, 32, 48, 64, 128, 256, 512 and 1024 pixels.

Raster filenames include their dimensions so files remain identifiable outside the size directories. For example, the 256-pixel Packet Warriors dark flat exports are named `packet-warriors-flat-dark-256x256.png` and `packet-warriors-flat-dark-256x256.webp`.

- Use 16, 32 or 48 pixels for browser and compact UI contexts.
- Use 64 or 128 pixels for navigation, launchers and dense application surfaces.
- Use 256 or 512 pixels for avatars, profile images and app tiles.
- Use 1024 pixels for high-density profiles and large application artwork.
- Prefer the Carbon-backed `*-icon` assets for favicons, avatars and app tiles. Flat and monochrome assets retain transparent backgrounds.
- PNG and WebP links in the style guide open the image in a new browser tab. Save the displayed image using the browser when a local copy is needed.

Packet Warriors source symbols use a 5:4 viewBox. The exports center them without distortion on the square canvas; no path geometry or internal negative space is changed.

Run `python3 tools/build_logo_assets.py` from the repository root after an approved SVG is added or changed. ImageMagick 7 and Pillow are required. The generator also updates `manifest.json` and `logos/logo-library.js`, which supplies the style-guide catalogue.