Finished first draft

A new auto-image is available that will download an image from the
internet, you just need to include the base64 encoded url in the include
graphics command
This commit is contained in:
Jonathan Hodgson 2020-06-16 17:32:17 +01:00
parent 312d654ea8
commit 438d357489
4 changed files with 73 additions and 33 deletions

9
bin/download-image Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
name="$1"
basename="$(basename "$name")"
b64="${basename%%.*}"
b64="${b64##*-}"
url="$(echo -n "$b64" | base64 -d)"
curl -L -o "$name" "$url"