html2image icon indicating copy to clipboard operation
html2image copied to clipboard

`--quiet` doesn't suppress output

Open tilusnet opened this issue 2 years ago • 1 comments

When I pass --quiet, the tool still spits out lots of info - presumably coming from the browser process? I expect a tool to have zero output when a "quiet" option is on.

Also, I couldn't find a quiet option in the Python API.

Is the command line / Python API not equivalent?

tilusnet avatar Feb 17 '22 13:02 tilusnet

At the moment, there is no way to disable the browser's output from both the CLI and Python package, it is feasible though and will be implemented in a later update. See #55.

Even if the goal is to keep the "interface" very similar between the CLI and the Python API, they are not completely equivalent in some ways. Indeed, CLIs often have quiet/verbose modes to control the amount of information that is automatically displayed after running a command, where you would have to print() them yourself while using the Python package.

For instance, with the CLI, the paths of the generated files are printed by default if the quiet flag is not set, while these paths are returned by the Html2Image.screenshot() method of the Python package.

vgalin avatar Feb 17 '22 16:02 vgalin

When will this be added? Looking forward to this :)

Would also donate

ZeroHans4 avatar Nov 24 '22 20:11 ZeroHans4

I need to run this often and the ouput bothers me

ZeroHans4 avatar Nov 24 '22 20:11 ZeroHans4