chore(logos): add -com SVG variants and size generation script
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
09be33fd84
commit
8e94196e5a
3 files changed
+43
No files matched your search
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
# Generate sized SVG variants from base files.
|
||||
# Each base has only a viewBox — this script adds width/height.
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Horizontal: viewBox="65 398 1049 243" → aspect 1049:243
|
||||
for size in 512 1024 2048; do
|
||||
h=$(echo "$size * 243 / 1049" | bc)
|
||||
sed "s|viewBox=|width=\"$size\" height=\"$h\" viewBox=|" \
|
||||
horizontal.svg > "horizontal-${size}.svg"
|
||||
done
|
||||
|
||||
# Stacked: viewBox="0 0 880 420" → aspect 880:420
|
||||
for size in 512 1024 2048; do
|
||||
h=$(echo "$size * 420 / 880" | bc)
|
||||
sed "s|viewBox=|width=\"$size\" height=\"$h\" viewBox=|" \
|
||||
stacked.svg > "stacked-${size}.svg"
|
||||
done
|
||||
|
||||
# Two-line: viewBox="65 385 603 253" → aspect 603:253
|
||||
for size in 512 1024 2048; do
|
||||
h=$(echo "$size * 253 / 603" | bc)
|
||||
sed "s|viewBox=|width=\"$size\" height=\"$h\" viewBox=|" \
|
||||
twoline.svg > "twoline-${size}.svg"
|
||||
done
|
||||
|
||||
# Icon: viewBox="60 400 220 224" → square (use larger dim)
|
||||
for size in 512 1024 2048; do
|
||||
sed "s|viewBox=|width=\"$size\" height=\"$size\" viewBox=|" \
|
||||
icon.svg > "icon-${size}.svg"
|
||||
done
|
||||
|
||||
echo "Generated 12 sized SVGs."
|
||||
ls -la *-512.svg *-1024.svg *-2048.svg
|
||||
Reference in new issue
Block a user