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

webkit2png not outputting images smaller than 800px wide #82

Open
noelforte opened this issue Oct 21, 2014 · 4 comments
Open

webkit2png not outputting images smaller than 800px wide #82

noelforte opened this issue Oct 21, 2014 · 4 comments
Labels
Milestone

Comments

@noelforte
Copy link

webkit2png isn't outputting images that are less than 800px wide (or on retina 1600px wide). Is there a way to render smaller width images?

@alastairstuart
Copy link

Workaround for now: as long as you're not producing the clipped images, you can set the --clipwidth option to 1 (width is reset to the minimum of the default clip width multiplied by the thumbnail scale factor)

AlAir-2:im-textmaker al$ webkit2png -W 720 --clipwidth 1 --transparent -F -o test test.html
Fetching file:///Users/al/Desktop/im-textmaker/test.html ...
 ... done
AlAir-2:im-textmaker al$ file test-full.png 
test-full.png: PNG image data, 720 x 600, 8-bit/color RGBA, non-interlaced

@vincenzomanzoni
Copy link

alastairstuart, I tried your workaround, but it does not work on my webkit2png version:

$ webkit2png -W 720 --clipwidth 1 --transparent -F -o test https://www.google.com
Fetching https://www.google.com ...
 ... done
$ file test-full.png 
test-full.png: PNG image data, 980 x 600, 8-bit/color RGBA, non-interlaced
$ webkit2png --version
webkit2png 0.7

@ckissi
Copy link

ckissi commented Feb 10, 2016

Works for me and I have the version 0.7 too

@paulhammond paulhammond added this to the v1.0 milestone Mar 26, 2020
@paulhammond
Copy link
Owner

I see this on my laptop, which will make it easier to fix!

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

No branches or pull requests

5 participants