In case anyone is wondering what my avatar is, its the small...

npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr
hex
a9a3b9581fd7c85915dcc0b8660ebc5bbee0ff0b33f046d04113d0b86575cfd1nevent
nevent1qqs2ngaetq0a0jzezhwvpwrxp679h0hqlu9n8uzx6pq3859cv46ul5gprpmhxue69uhhyetvv9ujuem4d36kwatvw5hx6mm9qgszv6q4uryjzr06xfxxew34wwc5hmjfmfpqn229d72gfegsdn2q3fgcecwvpKind-1 (TextNote)
In case anyone is wondering what my avatar is, its the smallest most interesting SVG shape I could hand code back when astral.ninja was the main nostr client.
When I joined nostr it was out of curiosity, so naturally I wanted to test what would break if I set my profile image to a data URI. but at the time astral.ninja limited the "picture" field to maximum length of 256 which meant that if I was going to build a data URI that would fit I would only be able to do SVG and probably only have a single element.
This is the SVG I ended up writing:
The main path "M0 0h10v10H0z" takes advantage of the fact that the fill area on paths inverts when it crosses itself. which allowed me to make the white space in the middle.
So in total this SVG encoded to a data URI has a length of 206, just enough to fit into the "picture" field in astral.ninja, although as you would imagine It didn't work so I went back to a PNG profile picture :D

Raw JSON
{
"kind": 1,
"id": "a9a3b9581fd7c85915dcc0b8660ebc5bbee0ff0b33f046d04113d0b86575cfd1",
"pubkey": "266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"created_at": 1784216336,
"tags": [
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "In case anyone is wondering what my avatar is, its the smallest most interesting SVG shape I could hand code back when astral.ninja was the main nostr client.\n\nWhen I joined nostr it was out of curiosity, so naturally I wanted to test what would break if I set my profile image to a data URI. but at the time astral.ninja limited the \"picture\" field to maximum length of 256 which meant that if I was going to build a data URI that would fit I would only be able to do SVG and probably only have a single \u003cpath\u003e element.\n\nThis is the SVG I ended up writing:\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 10 10\"\u003e\u003cpath fill=\"#fff\" d=\"M0 0h10v10H0z\"/\u003e\u003cpath d=\"M2 4h4v4Zm0-2v6h6Z\"/\u003e\u003c/svg\u003e\n\nThe main path \"M0 0h10v10H0z\" takes advantage of the fact that the fill area on paths inverts when it crosses itself. which allowed me to make the white space in the middle.\n\nSo in total this SVG encoded to a data URI has a length of 206, just enough to fit into the \"picture\" field in astral.ninja, although as you would imagine It didn't work so I went back to a PNG profile picture :D\n\nhttps://cdn.hzrd149.com/d7442a68a534c63ec704db7930bca7757862ae8ffe7b9bf4d183266cdca9ffa2.webp",
"sig": "1b25302db63d3829f6e25379e1884dbc4ccaed7c9e3e0c50f090b44e7cf03daa67e6759b47b86077736c20c06476d604f19c73fcf0f15e85c8971ea28b46dc7c"
}