5 ms·
If it’s a single file, then how do the images get stored?
by vincentmarle 5y ago
If it’s a single file, then how do the images get stored?
- gildas 5y agoImages are stored as data URIs [1]. Note that they could also be stored as entries in a zip file too! [2]. [1] https://en.wikipedia.org/wiki/Data_URI_scheme https://en.wikipedia.org/wiki/Data_URI_scheme [2] https://github.com/gildas-lormeau/SingleFileZ https://github.com/gildas-lormeau/SingleFileZ
- danielam 5y agoThey're base64 encoded[0]. (This is an approach I myself have used in the past for simplifying the archival of regulatory texts.) [0] https://github.com/gildas-lormeau/SingleFile/blob/15801c8ef461fb4dbaa7c878b4c977c3f9f0020f/faq.md#why-pages-saved-with-singlefile-weight-more-than-uncompressed-maff-files https://github.com/gildas-lormeau/SingleFile/blob/15801c8ef4...