IMGKit icon indicating copy to clipboard operation
IMGKit copied to clipboard

IMGKit fails without error

Open noctivityinc opened this issue 11 years ago • 2 comments

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?

noctivityinc avatar Oct 06 '14 15:10 noctivityinc

my guess is the location of wkhtmltoimage -- do you have the binary on your server and is it on your PATH?

csquared avatar Oct 07 '14 22:10 csquared

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).

noctivityinc avatar Oct 07 '14 22:10 noctivityinc