Add SVG to generate overlay from
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luca 2020-12-23 18:22:15 +01:00
parent 34681e9b56
commit 3ffd530acd
2 changed files with 21 additions and 0 deletions

17
static/gen-overlay.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
set -e
if [ -z "$1" ]
then
echo "Logo to generate overlay from was not specified."
exit 1
fi
DIR="$(dirname "$(which "$0")")"
export LOGO_URL="file://$DIR/logoGen/$1.svg"
envsubst < "$DIR/overlay.svg" > overlay.tmp.svg
inkscape -o overlay.png overlay.tmp.svg
rm overlay.tmp.svg

4
static/overlay.svg Normal file
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1920 1080">
<image xlink:href="$LOGO_URL" x="1920" y="30" width="120" height="120" transform="translate(-150)"/>
</svg>

After

Width:  |  Height:  |  Size: 272 B