fathyb / html2svg

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

Feature request: target viewport size #14

Closed prurigro closed 1 year ago

prurigro commented 1 year ago

It'd be great if it was possible to create exports of mobile sites in addition to desktop.

This project is awesome btw, thanks for creating it!

fathyb commented 1 year ago

I added new --width and --height options to set the viewport size, here's an example:

$ docker run fathyb/html2svg https://mui.com --width 500 > mui.svg

You can pull it on the latest Docker image!

prurigro commented 1 year ago

Amazing, thanks so much!