brugeman on Nostr: Many people complain that Damus and others consume a lot of traffic. A problem not ...
Many people complain that Damus and others consume a lot of traffic. A problem not many talk about is profile pics: those are huge! Many popular profiles have 10-20 Mb sized gifs.
Top 1k accs have >1Gb of pfps in total.
At https://nostr.band it took 50Mb just to load the homepage, because of profile pics.
So I built a 'media server' to solve this. It looks through all nostr profiles and downloads all profile pics and banners, then resizes them, then places at pre-defined urls on my server. Then I can get pics from there at https://media.nostr.band/thumbs/HHHH/pubkey-(picture|banner)-size
HHHH being the last 4 chars of pubkey.
Example: https://media.nostr.band/thumbs/276b/1989034e56b8f606c724f45a12ce84a11841621aaf7182a1f6564380b9c4276b-picture-64 - it's 179Kb, instead of 10Mb at @BTC Sessions (npub1rxy…hnp8)
I create 2 sizes for pictures (64 and 192) and 2 for banners (600 and 1200). On average, pictures are 90% smaller, and banners are 75% smaller.
If any client wants to use this server, to save your users' bandwidth, until a better solution comes along, drop me a line.
Top 1k accs have >1Gb of pfps in total.
At https://nostr.band it took 50Mb just to load the homepage, because of profile pics.
So I built a 'media server' to solve this. It looks through all nostr profiles and downloads all profile pics and banners, then resizes them, then places at pre-defined urls on my server. Then I can get pics from there at https://media.nostr.band/thumbs/HHHH/pubkey-(picture|banner)-size
HHHH being the last 4 chars of pubkey.
Example: https://media.nostr.band/thumbs/276b/1989034e56b8f606c724f45a12ce84a11841621aaf7182a1f6564380b9c4276b-picture-64 - it's 179Kb, instead of 10Mb at @BTC Sessions (npub1rxy…hnp8)
I create 2 sizes for pictures (64 and 192) and 2 for banners (600 and 1200). On average, pictures are 90% smaller, and banners are 75% smaller.
If any client wants to use this server, to save your users' bandwidth, until a better solution comes along, drop me a line.