We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The docs give an example of auto height calculation for the image:
ws.capture "http://www.google.com/", "google.png", width: 1024
However, webshot's default thumbnail settings produce an image that's only 90 pixels high due to the image processing step within the lib.
There's a workaround as follows for now (override the defaults with an empty imagemagick config):
ws.capture("http://www.bbc.co.uk/news", image_path, width: 1280, timeout: 2) do |magick| magick.combine_options do |c| end end
Not sure what the right approach for a fix is, perhaps not setting a default extent within webshot?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The docs give an example of auto height calculation for the image:
ws.capture "http://www.google.com/", "google.png", width: 1024
However, webshot's default thumbnail settings produce an image that's only 90 pixels high due to the image processing step within the lib.
There's a workaround as follows for now (override the defaults with an empty imagemagick config):
Not sure what the right approach for a fix is, perhaps not setting a default extent within webshot?
The text was updated successfully, but these errors were encountered: