shinohai on Nostr: A rudimentary function for this: `echo '<img src="data:image/'$(echo $1|awk -F. ...
A rudimentary function for this:
`echo '<img src="data:image/'$(echo $1|awk -F. '{print $2}')';base64,'$(cat $1 | base64)'"</img>' >$(echo $1|awk -F. '{print $1}').html`
`echo '<img src="data:image/'$(echo $1|awk -F. '{print $2}')';base64,'$(cat $1 | base64)'"</img>' >$(echo $1|awk -F. '{print $1}').html`
quoting note1nm4…s443Bring on the base64 encoding