Created
February 3, 2012 15:44
-
-
Save jlebrech/1730795 to your computer and use it in GitHub Desktop.
imgkit wrong output dimensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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