npub1ph…lvxc8 on Nostr: $ curl -I ... content-length: 29297 ignore images that are too large based on http ...
$ curl -I
...
content-length: 29297
ignore images that are too large based on http headers content-length
ignore gifs because gif is stale file format
when adding profile pic, make client side compression to eg 500x500 webp
further optimization:
there could be two profile pic files. one small, and one larger when you open profile or click to view full size image
//
you cannot expect any specific behaviour from users. anyone can set any size of profile pic. you can however make clients not to download those.
Published at
2024-07-20 14:50:54Event JSON
{
"id": "000002e4107ec920b0a005cd0bda1ab068a107f1d806600a82a52b9e8ebfdd7e",
"pubkey": "0dc595a6c065fbf043e799a9262c9f54408f103ac67c002058c692cfeb534648",
"created_at": 1721487054,
"kind": 1,
"tags": [
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"e",
"e5c18eb111de7a5f0bf4e1b762269751692e3472286c576f9b646b30b8d9da96",
""
],
[
"nonce",
"1775444",
"21"
]
],
"content": "$ curl -I https://vitorpamplona.com/images/me_300.jpg\n...\ncontent-length: 29297\n\nignore images that are too large based on http headers content-length\n\nignore gifs because gif is stale file format\n\nwhen adding profile pic, make client side compression to eg 500x500 webp\n\nfurther optimization:\nthere could be two profile pic files. one small, and one larger when you open profile or click to view full size image\n\n//\n\nyou cannot expect any specific behaviour from users. anyone can set any size of profile pic. you can however make clients not to download those.",
"sig": "aa5b4a6d9bf2ff5996671b40cce894e23ccddfd6f57838edc8389caa975e63b133e3890c0b2afdb88626d765eb7d7e04f829a76726a0c67426259876a0cbb9f9"
}