Closed fededamian closed 4 years ago
Hello @fededamian,
Thanks your support !
Indeed that bug seems to be trivial:
viewportsize
option in PhantomJSCould you try with another renderer
?
Thanks for the answer @maaaaz ,
Based on the README, I guess the other renderers have bigger issues than this one (no support for sites with invalid certs or no support for concurrency), so I think I'll stick with phantomjs and maybe add some post-processing of the image after I grab it.
Thanks for the answer @maaaaz ,
Based on the README, I guess the other renderers have bigger issues than this one (no support for sites with invalid certs or no support for concurrency), so I think I'll stick with phantomjs and maybe add some post-processing of the image after I grab it.
That is a good idea, I guess you can do it with imagemagick
I was able to achieve this goal by using the following imagemagick
command (if the output of webscreenshot is a picture with the filename image.png
):
convert image.png -crop 640x480+0+0 +repage -background black -extent 640x480+0+0 image.png
Which either crops or enlarges the image to the desired resolution.
Added this issue in FAQ for reference.
Hello maaaaz, and thanks again for this great tool and the support. Today I am reporting an issue that seems pretty obvious to me, so I don't know if it happens under certain conditions in my environments, although I tested it both on Linux and Mac. Let me know if I can provide more data than the following:
800 px
and also when using the--window-size
argument.`Reproduction steps on Mac Run the following command and check the output image has more than 360 pixels on length.
Output Image: