💾 Archived View for tilde.team › ~smokey › logs › unfinished › image-to-data-url.gmi captured on 2022-06-11 at 21:13:49. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-06-04)

-=-=-=-=-=-=-

creating base64 encoded images

step 1: convert image into base64 encoded text file

{ echo "=> data:image/png;base64,"; openssl enc -base64 -in input.png; } > image.b64

Step 2: remove all spaces

cat image.b64 | tr -d " \t\n\r"