mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
bump up screenshot quality a bit
This commit is contained in:
parent
0e3b6ee3a0
commit
6038517c24
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class ScreenshotWorker
|
|||
tmpfile_path = "/tmp/#{SecureRandom.uuid}.jpg"
|
||||
|
||||
begin
|
||||
new_img.write(tmpfile_path) { self.quality = 90 }
|
||||
new_img.write(tmpfile_path) { self.quality = 92 }
|
||||
new_img.destroy!
|
||||
$image_optim.optimize_image! tmpfile_path
|
||||
File.open(full_screenshot_path, 'wb') {|file| file.write File.read(tmpfile_path)}
|
||||
|
|
Loading…
Add table
Reference in a new issue