You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the final .html files include all images as inline base64 data. The problem is, profile photos are typically repeated many times within a chat, and the data is duplicated every time. This makes the files unnecessarily large.
Here is an idea of how to reuse the same data using CSS: https://stackoverflow.com/a/55762229/675674. Note that SVG, which is also used there, is avoidable too: see the comment. Other answers provide other CSS solutions and a JS one.
The text was updated successfully, but these errors were encountered:
I made a Python script to post-process the files: https://gist.github.com/PeterMinin/20b7bebbda578db7cad24a6487d81d7c.
Well, for me it saved 10%, 305 MB -> 272 MB. Not very much, especially if you compress your backup. But some of my files reduced by ~70%, like 490 KB -> 128 KB, so YMMV.
Currently the final .html files include all images as inline base64 data. The problem is, profile photos are typically repeated many times within a chat, and the data is duplicated every time. This makes the files unnecessarily large.
Here is an idea of how to reuse the same data using CSS: https://stackoverflow.com/a/55762229/675674. Note that SVG, which is also used there, is avoidable too: see the comment. Other answers provide other CSS solutions and a JS one.
The text was updated successfully, but these errors were encountered: