Open ara4n opened 9 months ago
Just open a webpage with the static exported history on it. This has the advantage that:
I don't think this is feasible as we'd need to base64 encode all media which would make the file very large and would be very duplicitous with avatars.
Hey all, the current feedback we have had from our on-prem environment users:
Would there be any way it can be exported to a pdf file in the future? This would make it very user friendly for non tech savy users. Worst case if you exported to html you could print to pdf if all data is captured.
@NickTupp that sounds unrelated to this issue.
I don't think this is feasible as we'd need to base64 encode all media which would make the file very large and would be very duplicitous with avatars.
I'm not sure why you'd need to base64 the media? I'm envisaging generating a huge HTML view of a timeline (i.e. made out of normal image tags, which may well be backed by blobs), and then relying on the browser's built-in "Save Page As..." to save that as an html archive or PDF or whatever. The blobs would get blatted out to disk as files by that engine, i think.
The only disadvantage I see is that if the HTML is too large for the browser to render, it might OOM. However, it sounds like we may have that problem with the current approach already (https://github.com/element-hq/element-web/issues/27615).
and then relying on the browser's built-in "Save Page As..." to save that as an html archive or PDF or whatever. The blobs would get blatted out to disk as files by that engine, i think.
Turns out in Chrome at least, it's awful - it doesn't save the blobs, and misses loads of other stuff too. Similarly save as PDF chokes on the blobs. So yes, i guess you'd need to inline them as data URIs, which would indeed be horrible and exasperate memory problems.
random thought: if you could get the blobs served by a service worker as SW-backed fetched URLs, perhaps that would work to persuade Save Page As to actually save them.
Steps to reproduce
Outcome
What did you expect?
Just open a webpage with the static exported history on it. This has the advantage that:
What happened instead?
The app assumed the user was a developer who would know how to handle a ZIP of HTML+CSS, rather than treating them like a normal user.
Operating system
No response
Browser information
No response
URL for webapp
No response
Application version
No response
Homeserver
No response
Will you send logs?
No