Tiny image previews for everyone
Here are some diagarams proposing a simplified scenario:
When the user uploads an image, the backend saves the full-resolution copy the way it usually does.
However it also queries, the microIMG server for the microIMG. The response should be a JSON string, that contains a "header" and a "body".
For the same configuration, the "header" value should always be the same. This can be used to error-check the set-up.
When the user required the content, the content gets sent with the microIMG-header pre-attached.
The microIMG is the requested, and when it gets to the browser, it gets reconstructed as a base64 image.
Once the content is ready, it can request the full resolution image, to replace the microIMG.