MSTeamsChatExporter icon indicating copy to clipboard operation
MSTeamsChatExporter copied to clipboard

Reduce .html size by avoiding duplicating image data

Open PeterMinin opened this issue 1 year ago • 1 comments

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.

PeterMinin avatar Mar 09 '23 12:03 PeterMinin