vbauer / manet

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

Feature: take a screenshot of a page element(by selector) #68

Closed alexstep closed 7 years ago

alexstep commented 7 years ago

Now users can add selectorCrop=true option to take image of htmlelement selected by selector option. selectorCropPadding option can be negative. Tested on slimerjs and phantomjs, works fine.

Capture google logo: /?url=google.com&width=1300&zoom=2&selector=%23hplogo&selectorCrop=true&selectorCropPadding=20&engine=phantomjs

vbauer commented 7 years ago

Sorry for the late response, I was really busy.. Thank you very much for PR!