Comments (2)
Found out I just need to set Webshot.height and Webshot.width prior to the screenshot.
from webshot.
After some tests, it seems that the above solution does not work after all. It works on the first call to ws.capture but then the dimensions are reset for some reason. Am I missing something?
from webshot.
Related Issues (20)
- Doesn't work with PhantomJS 2.0 HOT 6
- Feature Request: webshot pages with 4xx response code HOT 2
- How to crop height to the size of the webpage? HOT 2
- Poltergeist update HOT 1
- Target a div when take screenshot HOT 1
- Mobile requests
- Automatic height calculation overridden by thumbnail height
- Depends on an older version of `mini_magick`
- Images not loading in screenshot HOT 3
- Not getting screenshot
- Issue for timeout when capturing an image
- Screenshot local HTML content
- Issue when there is no such domain or server doesn't respond
- On some sites, capturing prints undesired output to stdout
- Capture multiple images after setting session
- Edit collection link is broken
- Duplicate screenshots issue
- MiniMagick::Error for some sites HOT 3
- Issue with connecting to some sites because of SSL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webshot.