Skip to content
New issue

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

Automatic height calculation overridden by thumbnail height #24

Open
PaulAik opened this issue Jan 22, 2017 · 0 comments
Open

Automatic height calculation overridden by thumbnail height #24

PaulAik opened this issue Jan 22, 2017 · 0 comments

Comments

@PaulAik
Copy link

PaulAik commented Jan 22, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant