Search code examples
imageurlwebkitthumbnailsscale

WKhtmltoimage --scale-w not working


I'm trying to create thumbnail from url with WKhtmltoImage by executing this command :

wkhtmltoimage --scale 200 http://google.com google.jpg

but return this error :

Unknown long argument --scale-w

the version of my wkhtmltoimage is :

wkhtmltoimage 0.11.0 rc2

any suggestion please.


Solution

  • Use the zoom option. The following example is running under 0.11.0 rc2:

    wkhtmltoimage --zoom 0.2 http://abt.net abt.png