0

How can I use wkhtmltoimage to run by default with xvfb?

/usr/bin/xvfb-run --server-args="-screen 0, 1024x1024x24"

I've to create bash file like this wkhtmltoimage

/usr/bin/xvfb-run --server-args="-screen 0, 1024x1024x24" /usr/local/bin/wkhtmltoimage-64 $*

But in this case, other programs (gem imgkit) do not work correctly with wkhtmltoimage. It put addition debug info to the file.

Tim Penner
  • 3,551
  • 21
  • 36
Sergey Prishak
  • 300
  • 1
  • 4
  • 10

1 Answers1

0

You can create a wrapper script as I done that:

wkhtmltoimage:

xvfb-run --server-args="-screen 0, 1024x680x24" wkhtmltoimage.bin -q --use-xserver $*

where wkhtmltoimage.bin is original binary.

styx
  • 23
  • 6