Skip to content

Instantly share code, notes, and snippets.

@jlebrech
Created February 3, 2012 15:44
Show Gist options
  • Save jlebrech/1730795 to your computer and use it in GitHub Desktop.
Save jlebrech/1730795 to your computer and use it in GitHub Desktop.
imgkit wrong output dimensions
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')
#the output file has the dimensions of 710x240
#clearly not right.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment