fathyb / html2svg

Convert HTML and `<canvas>` to SVG, PDF, or images using Chromium
1.19k stars 30 forks source link

Feature Request: Full scroll #17

Closed prurigro closed 1 year ago

prurigro commented 1 year ago

This might be too complex to reasonably include and maintain as a feature, but for the purpose of outputting website previews it would be handy if it was possible to capture the full viewport (maybe as a flag like --height full or --height auto or something?).

Maybe it could detect the body element's height and then set the viewport height to match that before taking a snapshot?

fathyb commented 1 year ago

You should be able to do that with the --full option! Going to update the readme to include it in a bit..

prurigro commented 1 year ago

Amazing, it seems like you've thought of everything! Thanks again for the awesome tool :)