near lossless for screenshots

This commit is contained in:
Kyle Drake 2023-04-28 15:21:43 +00:00
parent a0b3216ec8
commit 454e4162ce

View file

@ -59,7 +59,7 @@ class ScreenshotWorker
full_screenshot_path = File.join(user_screenshots_path, "#{path_for_screenshot}.#{res}.webp")
opts = {quality: 90, resize_w: width, resize_h: height}
opts = {resize_w: width, resize_h: height, near_lossless: 0}
if width == height
opts.merge! crop_x: 160, crop_y: 0, crop_w: 960, crop_h: 960