14 lines
1.2 KiB
Markdown
14 lines
1.2 KiB
Markdown
# Preview art
|
|
|
|
`preview.html` renders `About/Preview.png` (1280x720) and `icon.html` renders `About/ModIcon.png` (256x256), in the Blax CI from https://www.blax.at/ui-ci: Blax black `#050805`, Blax green `#19C63C`, logo gray `#CDCDCD`, Geist for headings, Inter for body, Rajdhani only for the "Blax Gaming" wordmark. Fonts are the woff2 files blax.at self-hosts (all SIL Open Font License); icons are lucide.
|
|
|
|
Render with Edge headless from this folder. The separate profile folder keeps the headless run away from an open Edge window, and `| Out-Null` waits for each screenshot.
|
|
|
|
```powershell
|
|
$edge = 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
|
|
$here = (Get-Location).Path -replace '\\','/'
|
|
$edgeData = "$env:TEMP\blax-art-edge"
|
|
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=3000 --window-size=1280,720 --screenshot="$PWD\..\..\About\Preview.png" "file:///$here/preview.html" | Out-Null
|
|
& $edge --headless=new --disable-gpu --hide-scrollbars --user-data-dir="$edgeData" --virtual-time-budget=2000 --window-size=256,256 --default-background-color=00000000 --screenshot="$PWD\..\..\About\ModIcon.png" "file:///$here/icon.html" | Out-Null
|
|
```
|