Skip to content

Commit 2671000

Browse files
committed
chore(wporg): add SVG placeholders and rendered PNGs for icon and banner
1 parent 8eca7b6 commit 2671000

File tree

7 files changed

+85
-0
lines changed

7 files changed

+85
-0
lines changed

assets/wporg/banner-1544x500.png

51 KB
Loading

assets/wporg/banner-772x250.png

22.1 KB
Loading

assets/wporg/banner.svg

Lines changed: 33 additions & 0 deletions
Loading

assets/wporg/icon-128.png

5.34 KB
Loading

assets/wporg/icon-256.png

11 KB
Loading

assets/wporg/icon.svg

Lines changed: 22 additions & 0 deletions
Loading
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
cd "$(dirname "$0")"
4+
5+
# Requires: inkscape or rsvg-convert (install via apt)
6+
7+
render() {
8+
local svg="$1"; shift
9+
local out="$1"; shift
10+
local width="$1"; shift
11+
local height="$1"; shift
12+
if command -v inkscape >/dev/null 2>&1; then
13+
inkscape --export-type=png --export-filename="$out" -w "$width" -h "$height" "$svg"
14+
elif command -v rsvg-convert >/dev/null 2>&1; then
15+
rsvg-convert -w "$width" -h "$height" -o "$out" "$svg"
16+
else
17+
echo "Please install inkscape or rsvg-convert" >&2
18+
exit 1
19+
fi
20+
}
21+
22+
# Icons
23+
render icon.svg icon-256.png 256 256
24+
render icon.svg icon-128.png 128 128
25+
26+
# Banners
27+
render banner.svg banner-1544x500.png 1544 500
28+
render banner.svg banner-772x250.png 772 250
29+
30+
echo "Rendered placeholder assets to PNG."

0 commit comments

Comments
 (0)