mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
near lossless for screenshots
This commit is contained in:
parent
a0b3216ec8
commit
454e4162ce
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class ScreenshotWorker
|
||||||
|
|
||||||
full_screenshot_path = File.join(user_screenshots_path, "#{path_for_screenshot}.#{res}.webp")
|
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
|
if width == height
|
||||||
opts.merge! crop_x: 160, crop_y: 0, crop_w: 960, crop_h: 960
|
opts.merge! crop_x: 160, crop_y: 0, crop_w: 960, crop_h: 960
|
||||||
|
|
Loading…
Add table
Reference in a new issue