vbauer / manet

Website screenshot service powered by Node.js, SlimerJS and PhantomJS
MIT License
576 stars 102 forks source link

Ability to set a maximum height of a rendered page. #99

Open iwanowskidev opened 5 years ago

iwanowskidev commented 5 years ago

For example: https://manet.herokuapp.com/?url=www.google.com&width=1024&clipRect=0%2C0%2C1024%2C2000

I get a screen like

image

out of page should not be included in a screenshot

Purpose of crop option is diferent. Smaler image size is preferable.

I want to do screnshot of maximum dimension 1024x2000. How could I achive this scenario?

I want something like the maximum height of the viewport

Originally posted by @iwanowskidev in https://github.com/vbauer/manet/issues/7#issuecomment-479908086