v2.0.34
Added --embed-screenshot
option to embed a screenshot of the page as a PNG file in the compressed file (i.e. when using --compress-content
).
When enabled, the resulting file can be read as a ZIP file or a PNG image. It can be combined with --self-extracting-archive
(and optionally --extract-data-from-page
) to make the resulting file compatible with HTML.
For example, the command below creates an HTML file which can also be read as a ZIP file and as a PNG file (e.g. by renaming the resulting file).
single-file https://github.com/gildas-lormeau/single-file-cli --compress-content --embed-screenshot