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` nostr:note1nm4nhlhsut7m4x0jw3tg7arrdjslerpkcr39r6nyvjx4kgktn42s8ts443