fathyb / html2svg

Convert HTML and `<canvas>` to SVG, PDF, or images using Chromium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: target viewport size

prurigro opened this issue · comments

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!

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!

Amazing, thanks so much!