IMGKit fails without error
When I deploy my app to production imgkit fails without error. When I try running sample commands in console on production it works fine, but a simple:
kit = IMGKit.new(render_to_string, width: 800)
send_data(kit.to_img(:png), :type => "image/png", :disposition => "inline")
fails. Does anyone have any suggestions on how to debug this?
my guess is the location of wkhtmltoimage -- do you have the binary on your server and is it on your PATH?
I found some errors and warnings when I render the page to a file and then run wkhtmltoimage directly. The odd thing is that NONE of these errors or warnings are logged in the rails log, making it difficult to debug.
Joshua Lippiner
.:t 704.323.5661
.:e [email protected] (mailto:[email protected])
On Tuesday, October 7, 2014 at 6:33 PM, Chris Continanza wrote:
my guess is the location of wkhtmltoimage -- do you have the binary on your server and is it on your PATH?
— Reply to this email directly or view it on GitHub (https://github.com/csquared/IMGKit/issues/69#issuecomment-58274013).