resize for new sizes

This commit is contained in:
Kyle Drake 2013-07-14 03:10:41 -04:00
parent f72580638d
commit 98fcadd170

View file

@ -28,7 +28,7 @@ class ScreenshotWorker
img_list.new_image(img_list.first.columns, img_list.first.rows) { self.background_color = "white" }
img = img_list.reverse.flatten_images
img.crop!(0, 0, 1280, 720)
img.resize! 500, 300
img.resize! 208, 125
img.write File.join(DIR_ROOT, 'public', 'site_screenshots', "#{username}.jpg")
end
end