Manage low resolution thumbnails in chat applications

I doubt the approach that is usually followed by popular chat apps like Whatsapp, Wechat, etc. It can be seen that these applications use a low-resolution image of a real image / video file. How is this managed?

I'm worried about space management on the server . Does the client process the original image and create a low-resolution version and send 2 requests to the server (original + blurred file)? . After that, a blurry image with a smaller size is shared with others who initiate a GET request for the original image / video file.

Or the server itself does some processing from the source file and makes a low version out of it . And it does as indicated above.

In both cases, which I could think of, the server runs out of space with two instances of each shared image / video.

Please let me know how this actually happens. I would be grateful!

+5
source share
1 answer

you need to upload the source files to your server (web server) and using the web server you can send a thumbnail of the base64 file to the ejabberd server. create a blurry image on the client side, not on the server side (less workload on the server if you do this on the client side). In this case, you need to create your own ejabberd module through this custom HTTP server of the custom module that communicates with the ejabberd server.

0
source

All Articles