csquared/IMGKit — Issue #13: Generated image width does not match provided parameters
Author: jlebrech
Created: 2012-02-03 15:50:29+00:00
State: open

require 'imgkit'
kit = IMGKit.new('http://google.com', :quality => 94, :width => 320, :height => 240)

img = kit.to_img(:jpeg)
file = kit.to_file('file.jpg')

This code produces an image which is 710x240.