Add SVG to generate overlay from
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
34681e9b56
commit
3ffd530acd
|
@ -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
|
|
@ -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 |
Loading…
Reference in New Issue