Upload bigger resolution photos
Is your feature request related to a problem? Please describe. The images stored on Swarm are resized to be smaller than 500KB and 400 pixels. Because of this the images are low quality. This was because earlier we used the public Swarm network to store files and it was quite slow.
Describe the solution you'd like Now that we are using our own gateway and it is no longer slow, we could upload images in higher size/resolution. Now we are uploading two images for each picture:
- a placeholder, which is a 10x10 version of the image and is usually less than 1KB
- a resized version, which is less than 500KB and 400 pixel
Based on some tests that I did we could increase the resized version size to 2MB and 1300 pixel, without seriously affecting the user experience on a good network (e.g. Wifi, 4G).
Describe alternatives you've considered One problem with the approach described above is that the upload time depends on the network the user happens to have at the moment of the upload. That means that it would be better to have an adaptive method, where we upload three versions:
- a placeholder
- an optimal upload size/mobile screen size version, so that sharing is quick
- a good quality version, which is more close to the original
Then the app on the follower side could download the best available version also depending on the network they are.
Also for the placeholder it's possible to use a technique called Blurhash. Basically the idea is to downscale it so small that it's less than ~100Bytes, then it can be baseXX encoded and included in the JSON metadata itself. With that we can even optimize out another request to Swarm and display a placeholder while the photo is loading.