xvfb-run error pointing to incorrect wkhtmltoimage path
noctivityinc opened this issue · 0 comments
noctivityinc commented
I have the config setup for wkhtmltoimage as such
2.0.0-p247 :015 > IMGKit.to_json
=> "{\"configuration\":{\"meta_tag_prefix\":\"imgkit-\",\"default_options\":{\"height\":1000},\"default_format\":\"jpg\",\"wkhtmltoimage\":\"/home/wecora/bin/wkhtmltoimage\"}}"
but trying to run IMGKit always produces the following error:
2.0.0-p247 :001 > kit = IMGKit.new('http://google.com')
=> #<IMGKit:0x00000007bc1ef0 @source=#<IMGKit::Source:0x00000007bc1e00 @source="http://google.com">, @stylesheets=[], @options={:height=>1000}>
2.0.0-p247 :002 > img = kit.to_img(:jpg)
=> "/usr/bin/xvfb-run: line 166: /bin/wkhtmltoimage: No such file or directory\n"
As can be seen, xvfb-run is looking for wkhtmltoimage in the wrong location and I have no idea how to point it to the correct location. Any suggestions?