Damus
utxo the webmaster ๐Ÿง‘โ€๐Ÿ’ป · 1w
Please tell me all the media things I should fix I'll do it this weekend, idk much about this subject.
Sats McRyan profile picture
Easy ones:
PFP optimization. They don't need huge res, 400x400 is ok as they are used for tiny icon sized images. You can crank down the jpeg quality too for massive size savings. A few kB vs a few MB.

Similar for images. Have some sensible default presets for uploads, one dropping the res to 2k on the long side and applying more compression can drop a 6MB image down to a few dozen kB and still look fine for phone size display. Keeping the same resolution but dropping jpeg quality can save a lot too, without much image degradation.

Harder

Video is still a WIP, but huge savings are possible. The videos taken on a phone are meant for archival purposes, and there is a lot of fat to trim.
Example video from my phone. The compressed 1080p version is almost indistinguishable from the original, but it's 93% smaller in file size.

This takes time and power to do client side. It would be better done server side, but those solutions haven't materialized yet.

With multiple res available in the m3u8 playlist you can play the small res version in the feed, and switch to higher res in full screen. This saves BW & battery. I've been playing with client side stuff, check the #chonkr feed for samples.

@The Fishcake (nostr.build) is an expert when it comes to this stuff too, he might have some input and good ideas. He's been trying to get this to happen for years, maybe team up and push other clients ๐Ÿค”๐Ÿ˜‚

@Enki is working on server side stuff right now too, there's some posts in his feed today.
Sats McRyan · 1w
One more: converting GIF to MP4. A multi MB GIF can be compressed to a few kB of MP4. Most clients play them in the same fashion, so it's an easy win, orders of magnitude less data. Most modern software does this already. If I download a gif posted in Signal it is converted to an MP4. nostr:nprofil...