csquared / IMGKit

Uses wkhtmltoimage to create JPGs and PNGs from HTML
Other
727 stars 104 forks source link

IMGKit fails without error #69

Open noctivityinc opened 10 years ago

noctivityinc commented 10 years ago

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?

csquared commented 10 years ago

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

noctivityinc commented 10 years ago

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 jlippiner@noctivity.com (mailto:jlippiner@noctivity.com)

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