05nelsonm on Nostr: In terms of protecting IP address of user downloading images. Can use COIL-compose ...
In terms of protecting IP address of user downloading images. Can use COIL-compose and configure the ImageLoader to use a separate OkHttp client (which can be instantiated with Tor SOCKS5 proxy).
In terms of reducing mobile data, I think COIL resizes it on the fly based on the composable view size that it'll be loaded into. Still might be downloading the entire size though. IMO, imgproxy would be the best way to go.
Published at
2023-02-28 19:01:22Event JSON
{
"id": "ab4e6a6650d31590fafa334fd06fab047e7d1fbd098ca1d540efd9cca8c31957",
"pubkey": "94530f2a7f9a02d4115394de3261af4d69f230e37cab484980c377010b0fea36",
"created_at": 1677610882,
"kind": 1,
"tags": [
[
"e",
"6ce36049dd8ad302f0406ec01d194f285dee506b6fbc6ff0fb2091c678aeb067",
"",
"root"
],
[
"e",
"727d0543d620d052ebb7b5fa611832bf335b4f51792afd8ccf70d9af69aa4059",
"",
"reply"
],
[
"p",
"460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c"
],
[
"p",
"63fe6318dc58583cfe16810f86dd09e18bfd76aabc24a0081ce2856f330504ed"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"4523be58d395b1b196a9b8c82b038b6895cb02b683d0c253a955068dba1facd0"
]
],
"content": "In terms of protecting IP address of user downloading images. Can use COIL-compose and configure the ImageLoader to use a separate OkHttp client (which can be instantiated with Tor SOCKS5 proxy).\n\nIn terms of reducing mobile data, I think COIL resizes it on the fly based on the composable view size that it'll be loaded into. Still might be downloading the entire size though. IMO, imgproxy would be the best way to go.",
"sig": "f1bedea8395e8badf4f0e694e1a39415778df4a9c89e4e94c01a7bdcef8243106f5c7252b311ad13f7d436ff38b1b17f80aed06ec4c0a70c692e41b152450abd"
}