Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant convert to img #32

Closed
daniel00k opened this issue Sep 22, 2012 · 4 comments
Closed

cant convert to img #32

daniel00k opened this issue Sep 22, 2012 · 4 comments

Comments

@daniel00k
Copy link

This is what i do on a rails console:
kit = IMGKit.new("http://www.google.com", quality: 40, zoom: 0.2)
img = kit.to_img(:png)

and the result is an error like this:

Errno::ENOEXEC: Exec format error - /Users/danielaguilar/Documents/acid/efizity/lib/wkhtmltoimage-i386
from /Users/danielaguilar/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/open3.rb:202:in spawn' from /Users/danielaguilar/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/open3.rb:202:inpopen_run'
from /Users/danielaguilar/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/open3.rb:90:in popen3' from /Users/danielaguilar/.rvm/gems/ruby-1.9.2-p320@efizity/gems/imgkit-1.3.7/lib/imgkit/imgkit.rb:88:incapture3'
from /Users/danielaguilar/.rvm/gems/ruby-1.9.2-p320@efizity/gems/imgkit-1.3.7/lib/imgkit/imgkit.rb:108:in to_img' from (irb):2 from /Users/danielaguilar/.rvm/gems/ruby-1.9.2-p320@efizity/gems/railties-3.1.3/lib/rails/commands/console.rb:45:instart'
from /Users/danielaguilar/.rvm/gems/ruby-1.9.2-p320@efizity/gems/railties-3.1.3/lib/rails/commands/console.rb:8:in start' from /Users/danielaguilar/.rvm/gems/ruby-1.9.2-p320@efizity/gems/railties-3.1.3/lib/rails/commands.rb:40:in<top (required)>'
from script/rails:6:in require' from script/rails:6:in

'

@daniel00k
Copy link
Author

Im using version 1.3.7 of the gem

@csquared
Copy link
Owner

Hey daniel00k:

I'm using Ruby 1.9.2-p290 and IMGKit 1.3.7 and was able to do the following:

http://cl.ly/image/3E0n0W1w312M

What system (OS) are you on?

@csquared
Copy link
Owner

Also, I'm using wkhtmltoimage 0.10.0 rc2

@daniel00k
Copy link
Author

I downloaded that version and use the http://code.google.com/p/wkhtmltopdf/downloads/list version of the binary. The version installed with brew did not work either. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants