mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
resize for new sizes
This commit is contained in:
parent
f72580638d
commit
98fcadd170
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue